From 63b442c483e663cccf38117dd14782cbc89ae5dd Mon Sep 17 00:00:00 2001 From: rusefi Date: Wed, 24 Jan 2018 09:19:59 -0500 Subject: [PATCH] better error handling --- .../romraider/src/com/romraider/xml/RomAttributeParser.java | 2 +- java_console/ui/src/com/rusefi/Launcher.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java_console/romraider/src/com/romraider/xml/RomAttributeParser.java b/java_console/romraider/src/com/romraider/xml/RomAttributeParser.java index f18763013c..e3d5541991 100644 --- a/java_console/romraider/src/com/romraider/xml/RomAttributeParser.java +++ b/java_console/romraider/src/com/romraider/xml/RomAttributeParser.java @@ -178,7 +178,7 @@ public final class RomAttributeParser { else if (input.substring(input.length() - 2).equalsIgnoreCase("mb")) { return Integer.parseInt(input.substring(0, input.length() - 2)) * 1024 * 1024; } - throw new NumberFormatException(); + throw new NumberFormatException("While parsing [" + input + "]"); } } diff --git a/java_console/ui/src/com/rusefi/Launcher.java b/java_console/ui/src/com/rusefi/Launcher.java index 9f238d3c3f..9f92fa379b 100644 --- a/java_console/ui/src/com/rusefi/Launcher.java +++ b/java_console/ui/src/com/rusefi/Launcher.java @@ -45,7 +45,7 @@ import static com.rusefi.ui.storage.PersistentConfiguration.getConfig; * @see EngineSnifferPanel */ public class Launcher { - public static final int CONSOLE_VERSION = 20180120; + public static final int CONSOLE_VERSION = 20180124; public static final boolean SHOW_STIMULATOR = false; private static final String TAB_INDEX = "main_tab"; protected static final String PORT_KEY = "port";