Skip to content

Commit

Permalink
FORGE-661
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Aug 31, 2012
1 parent 13bd298 commit c629895
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions shell/src/main/java/org/jboss/forge/shell/ShellImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -660,15 +660,15 @@ private void handleException(final Exception original) throws Exception
{
// unwrap any aborted exceptions
Throwable cause = original;
while (cause != null)
while (cause.getCause() != null)
{
if (cause instanceof AbortedException)
throw (AbortedException) cause;

cause = cause.getCause();
}

throw original;
throw cause;
}
catch (AbortedException e)
{
Expand Down Expand Up @@ -710,7 +710,7 @@ private void handleException(final Exception original) throws Exception
e.printStackTrace();
}
}
catch (Exception e)
catch (Throwable e)
{
if (!isVerbose())
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public void testRun() throws Exception
{
File file = new File("src/test/resources/org/jboss/forge/shell/test/plugins/builtin/RunPluginTest.fsh");
Assert.assertTrue("Script file does not exist", file.exists());
getShell().execute(file);
getShell().execute("run "+file.getAbsolutePath());
}

}

0 comments on commit c629895

Please sign in to comment.