Ignore:
Timestamp:
02/07/14 18:00:28 (11 years ago)
Author:
pharms
Message:
  • improved logging
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/java-utils/src/main/java/de/ugoe/cs/util/console/CommandExecuter.java

    r1271 r1355  
    164164            } 
    165165            catch (IllegalArgumentException e) { 
     166                Console.println("invalid parameter provided: " + e.getMessage()); 
     167                Console.println("Usage: " + cmd.help()); 
     168            } 
     169            catch (Exception e) { 
     170                Console.println("error executing command: " + e); 
     171                Console.logException(e); 
    166172                Console.println("Usage: " + cmd.help()); 
    167173            } 
Note: See TracChangeset for help on using the changeset viewer.