Skip to content

Commit

Permalink
Better output on RaiseException, also don't try to recursively load j…
Browse files Browse the repository at this point in the history
…testr.jar if it's in the current directory.
  • Loading branch information
olabini committed Aug 8, 2008
1 parent 7e10703 commit 8728fc4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jtestr/src/java/org/jtestr/JtestRRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public void execute() throws BackgroundClientException {
System.err.println(trace[i]);
}

throw new RuntimeException("Exception while running", e);
throw new RuntimeException("Exception while running: " + e.getException().inspect().toString(), e);
} finally {
try {
runtime.tearDown();
Expand Down
2 changes: 1 addition & 1 deletion jtestr/src/java/org/jtestr/TestRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class TestRunner {

public TestRunner(Ruby runtime) {
this.runtime = runtime;
RubyKernel.require(runtime.getTopSelf(), runtime.newString("jtestr"), Block.NULL_BLOCK);
RubyKernel.require(runtime.getTopSelf(), runtime.newString("jtestr.rb"), Block.NULL_BLOCK);
runner = runtime.evalScriptlet("JtestR::TestRunner.new");
}

Expand Down

0 comments on commit 8728fc4

Please sign in to comment.