Skip to content

Commit b56ee71

Browse files
hmijaildwightguth
authored andcommitted
Display the message from the wrapped exception (runtimeverification#335)
1 parent 1b84d68 commit b56ee71

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

kore/src/main/java/org/kframework/utils/errorsystem/KException.java

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ public String toString() {
9999

100100
public String toString(boolean verbose) {
101101
return "[" + types.get(type) + "] " + labels.get(exceptionGroup) + ": " + message
102+
+ (exception == null ? "" : " (" + exception.getMessage() + ")")
102103
+ trace.toString() + traceTail()
103104
+ (source == null ? "" : "\n\t" + source)
104105
+ (location == null ? "" : "\n\t" + location)

0 commit comments

Comments
 (0)