aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net/sourceforge
diff options
context:
space:
mode:
authorOmair Majid <[email protected]>2011-01-24 10:20:57 -0500
committerOmair Majid <[email protected]>2011-01-24 10:20:57 -0500
commit083e67e8198a1973a2eeff7f0474c34ef3f189be (patch)
treef8ab9b3cef5c0d4dfeccddee5bfcf18260223888 /netx/net/sourceforge
parentd277b6ba50730b256a3b633c7c95798657d149d8 (diff)
When exiting on failure, use appropriate exit code
2011-01-24 Omair Majid <[email protected]> * netx/net/sourceforge/jnlp/Launcher.java: Exit with error code * netx/net/sourceforge/jnlp/NetxPanel.java: Likewise.
Diffstat (limited to 'netx/net/sourceforge')
-rw-r--r--netx/net/sourceforge/jnlp/Launcher.java2
-rw-r--r--netx/net/sourceforge/jnlp/NetxPanel.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/netx/net/sourceforge/jnlp/Launcher.java b/netx/net/sourceforge/jnlp/Launcher.java
index 0fddf85..cff3ee1 100644
--- a/netx/net/sourceforge/jnlp/Launcher.java
+++ b/netx/net/sourceforge/jnlp/Launcher.java
@@ -834,7 +834,7 @@ public class Launcher {
exception = ex;
// Exit if we can't launch the application.
if (exitOnFailure)
- System.exit(0);
+ System.exit(1);
}
}
diff --git a/netx/net/sourceforge/jnlp/NetxPanel.java b/netx/net/sourceforge/jnlp/NetxPanel.java
index 2b3037a..2d723d4 100644
--- a/netx/net/sourceforge/jnlp/NetxPanel.java
+++ b/netx/net/sourceforge/jnlp/NetxPanel.java
@@ -104,7 +104,7 @@ public class NetxPanel extends AppletViewerPanel {
// Assume user has indicated he does not trust the
// applet.
if (exitOnFailure)
- System.exit(0);
+ System.exit(1);
}
applet = appInst.getApplet();