only: better error message
This commit is contained in:
parent
0101901052
commit
75929b8e01
|
@ -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) + "\"";
|
||||
}
|
||||
|
||||
|
|
|
@ -33,8 +33,12 @@ public class WriteSimulatorConfiguration {
|
|||
String iniFileName = args[0];
|
||||
|
||||
System.out.println("ROOT_FOLDER=" + ROOT_FOLDER);
|
||||
try {
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue