From aaefe2579efdeb3d19b957b26029366218943d61 Mon Sep 17 00:00:00 2001 From: Björn Hagemeister Date: Mon, 20 Oct 2014 14:36:26 +0200 Subject: Edited return information of command line argument options. --- src/main/java/org/openslx/satellitedaemon/App.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/openslx/satellitedaemon/App.java b/src/main/java/org/openslx/satellitedaemon/App.java index e2f7bb8..3cdb62a 100644 --- a/src/main/java/org/openslx/satellitedaemon/App.java +++ b/src/main/java/org/openslx/satellitedaemon/App.java @@ -49,7 +49,7 @@ public class App else System.exit( 2 ); } else { - log.error( "--genid requires " ); + log.error( "Illegal option: --genid requires " ); System.exit( 2 ); } } else if ( arg.equals( "--import" ) ) { @@ -74,7 +74,7 @@ public class App else System.exit( 2 ); } else { - log.error( "--submitkey requires " ); + log.error( "Illegal option: --submitkey requires " ); System.exit( 2 ); } } else if ( arg.equals( "--updateaddress" ) ) { @@ -85,7 +85,7 @@ public class App } else System.exit( 2 ); } else { - log.error( "--updateaddress requires " ); + log.error( "Illegal option: --updateaddress requires " ); System.exit( 2 ); } } @@ -109,8 +109,10 @@ public class App private static boolean checkConfig() { - if ( Identity.getOrganizationName() == null ) + if ( Identity.getOrganizationName() == null ) { + log.error( "Checking config failed: no existing organization name." ); return false; + } RSAPublicKey pub = (RSAPublicKey)Identity.getPublicKey(); RSAPrivateKey priv = (RSAPrivateKey)Identity.getPrivateKey(); assert ( pub.getModulus() == priv.getModulus() ); -- cgit v1.2.3-55-g7522