mirror of
https://github.com/sbt/sbt.git
synced 2026-09-01 02:27:13 +02:00
Updated ForkError.getMessage() to include exception's original name.
This commit is contained in:
@@ -95,13 +95,15 @@ public class ForkMain {
|
||||
|
||||
static class ForkError extends Exception {
|
||||
private String originalMessage;
|
||||
private String originalName;
|
||||
private ForkError cause;
|
||||
ForkError(Throwable t) {
|
||||
originalMessage = t.getMessage();
|
||||
originalName = t.getClass().getName();
|
||||
setStackTrace(t.getStackTrace());
|
||||
if (t.getCause() != null) cause = new ForkError(t.getCause());
|
||||
}
|
||||
public String getMessage() { return originalMessage; }
|
||||
public String getMessage() { return originalName + ": " + originalMessage; }
|
||||
public Exception getCause() { return cause; }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user