Skip to content

Commit b6475dc

Browse files
committed
fix throwable to print class type and message
1 parent 6464ffe commit b6475dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftJava/Exceptions/Throwable+Error.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
// Translate all Java Throwable instances in a Swift error.
1616
extension Throwable: Error, CustomStringConvertible {
1717
public var description: String {
18-
return toString()
18+
"\(getClass().getCanonicalName())(\(getMessage()))"
1919
}
2020
}
2121

0 commit comments

Comments
 (0)