mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-11-30 12:34:01 -06:00
improve error details for unrecognized YAML structure
This commit is contained in:
parent
4b6c9ed526
commit
5513c06045
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user