Skip to content

Commit

Permalink
Issue #20: Rethrow CeylonRuntimeException instead of printing its sta…
Browse files Browse the repository at this point in the history
…ck trace
  • Loading branch information
tombentley committed Oct 18, 2012
1 parent a8943be commit 308250e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spi/src/main/java/ceylon/modules/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ public static void main(String[] args) throws Throwable {
try {
execute(args);
} catch (CeylonRuntimeException cre) {
cre.printStackTrace();
System.err.println("Error: " + cre.getMessage() + (cre.getCause() != null ? " [" + cre.getCause().getMessage() + "]" : ""));
throw cre;
} catch (Throwable t) {
// Get rid of unwanted stack elements
Throwable t2 = (t.getCause() != null) ? t.getCause() : t;
Expand Down

0 comments on commit 308250e

Please sign in to comment.