mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
improve error details for unrecognized YAML structure
This commit is contained in:
@@ -94,7 +94,8 @@ public class StatementsOwner extends RawStmtFields {
|
||||
}};
|
||||
itemizedMaps.add(stmtDetails);
|
||||
} else {
|
||||
throw new RuntimeException("Unknown inner value type on map-based statement definition.");
|
||||
throw new RuntimeException("Unknown inner value type on map-based statement definition: name:'" + entries.getKey() + "', type:'" +
|
||||
entries.getValue().getClass() + "', only maps and strings are recognized.");
|
||||
}
|
||||
}
|
||||
setStatementsFieldByType(itemizedMaps);
|
||||
|
||||
Reference in New Issue
Block a user