more detailed stacktrace

This commit is contained in:
Andrey 2023-11-25 21:13:51 -05:00
parent 21b72cab71
commit 52dfe10b02
1 changed files with 7 additions and 3 deletions

View File

@ -44,10 +44,14 @@ public class WriteSimulatorConfiguration {
}
}
private static void writeSpecificEngineType(int engineType) throws JAXBException, IOException {
private static void writeSpecificEngineType(int engineType) {
String engine = "_" + engineType;
writeTune(Fields.SIMULATOR_TUNE_BIN_FILE_NAME_PREFIX + engine + Fields.SIMULATOR_TUNE_BIN_FILE_NAME_SUFFIX,
TuneCanTool.SIMULATED_PREFIX + engine + TuneCanTool.SIMULATED_SUFFIX);
try {
writeTune(Fields.SIMULATOR_TUNE_BIN_FILE_NAME_PREFIX + engine + Fields.SIMULATOR_TUNE_BIN_FILE_NAME_SUFFIX,
TuneCanTool.SIMULATED_PREFIX + engine + TuneCanTool.SIMULATED_SUFFIX);
} catch (Throwable e) {
throw new IllegalStateException("With " + engineType, e);
}
}
private static void writeTune(String tuneBinFileName, String outputXmlFileName) throws JAXBException, IOException {