Permalink
Browse files

Show helpful message when CLI parsing fails.

  • Loading branch information...
reid committed Oct 20, 2010
1 parent b135774 commit 5f08e37377c28746aa7424a845b1d0ab4b9da408
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/com/yahoo/platform/yui/compressor/Configuration.java
@@ -41,7 +41,7 @@ public Configuration (String args[]) throws ConfigurationException {
try {
cliParser.parse(args);
} catch (CmdLineParser.OptionException ex) {
- throw new ConfigurationException("Command line parse failed.");
+ throw new ConfigurationException(ex.getMessage());
}
setInputType((String) cliParser.getOptionValue(typeOpt));

0 comments on commit 5f08e37

Please sign in to comment.