only: better error message

This commit is contained in:
Andrey 2024-06-15 20:05:47 -04:00
parent 0101901052
commit 75929b8e01
2 changed files with 6 additions and 2 deletions

View File

@ -55,7 +55,7 @@ public class EnumIniField extends IniField {
ordinal = getBitRange(ordinal, bitPosition, bitSize0 + 1);
if (ordinal >= enums.size())
throw new IllegalStateException("Ordinal out of range " + ordinal + " in " + getName());
throw new IllegalStateException("Ordinal out of range " + ordinal + " in " + getName() + " while " + enums.size() + " " + type);
return "\"" + enums.get(ordinal) + "\"";
}

View File

@ -34,7 +34,11 @@ public class WriteSimulatorConfiguration {
System.out.println("ROOT_FOLDER=" + ROOT_FOLDER);
try {
readBinaryWriteXmlTune(iniFileName, Fields.SIMULATOR_TUNE_BIN_FILE_NAME, TuneCanTool.DEFAULT_TUNE);
try {
readBinaryWriteXmlTune(iniFileName, Fields.SIMULATOR_TUNE_BIN_FILE_NAME, TuneCanTool.DEFAULT_TUNE);
} catch (Throwable e) {
throw new IllegalStateException("White default tune", e);
}
for (engine_type_e type : new engine_type_e[]{
// [CannedTunes] see 'rusEfiFunctionalTest.cpp' which exports default tunes into binary files for us
// [CannedTunes] TuneCanToolRunner for last third step