From 0a98f4783fa8f0a7c1aaaf3dbeaf0aec8f4652b9 Mon Sep 17 00:00:00 2001 From: DeaDDooMER Date: Sat, 16 Sep 2017 18:00:43 +0300 Subject: [PATCH] =?utf8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5?= =?utf8?q?=D0=BD=D0=B0=20=D0=BF=D0=B5=D1=87=D0=B0=D1=82=D1=8C=20=D1=81?= =?utf8?q?=D1=82=D0=B0=D0=BA=D1=82=D1=80=D0=B5=D0=B9=D1=81=D0=B0=20=D0=BF?= =?utf8?q?=D1=80=D0=B8=20=D0=B2=D0=BE=D0=B7=D0=BD=D0=B8=D0=BA=D0=BD=D0=BE?= =?utf8?q?=D0=B2=D0=B5=D0=BD=D0=B8=D0=B8=20=D0=B8=D1=81=D0=BA=D0=BB=D1=8E?= =?utf8?q?=D1=87=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=B2=20=D1=82=D0=B5=D0=BB?= =?utf8?q?=D0=B5=20=D0=BC=D0=BE=D0=B4=D1=83=D0=BB=D1=8F/=D0=BA=D0=BE=D0=BC?= =?utf8?q?=D0=B0=D0=BD=D0=B4=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- rtl/java/Launcher.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/rtl/java/Launcher.java b/rtl/java/Launcher.java index 3135732..98aceb8 100644 --- a/rtl/java/Launcher.java +++ b/rtl/java/Launcher.java @@ -3,6 +3,7 @@ import java.lang.reflect.*; class Launcher { public static void main(String[] args) + throws Throwable { /* Этап 1: Сохраняем список параметров */ Args.args = args; @@ -55,8 +56,7 @@ class Launcher System.err.println("Invalid module " + moduleName); System.exit(1); } catch(InvocationTargetException e) { - System.err.println("Invalid module " + moduleName); - System.exit(1); + throw e.getTargetException(); } if(commandName == "") @@ -80,8 +80,7 @@ class Launcher System.err.println("Invalid command " + moduleName + "." + commandName); System.exit(1); } catch(InvocationTargetException e) { - System.err.println("Invalid command " + moduleName + "." + commandName); - System.exit(1); + throw e.getTargetException(); } } } -- 2.29.2