Skip to content

Commit

Permalink
Print exception and return non zero status code in Rhino bootstrap.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Robinson committed Oct 9, 2009
1 parent cb3871b commit 7149fb2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions engines/rhino/bootstrap.js
Expand Up @@ -106,10 +106,12 @@
verbose: verbose
});
} catch (e) {
print(e);
if (e.rhinoException)
e.rhinoException.printStackTrace();
if (e.javaException)
e.javaException.printStackTrace();
Packages.java.lang.System.exit(1);
}

})(this, function () {
Expand Down

0 comments on commit 7149fb2

Please sign in to comment.