improve error details for unrecognized YAML structure

This commit is contained in:
Jonathan Shook 2022-06-07 12:30:54 -05:00
parent 4b6c9ed526
commit 5513c06045

View File

@ -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);