Skip to content

Commit

Permalink
Console: Fix using the wrong object's class name for errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mattco98 committed Dec 27, 2023
1 parent 527da06 commit 39e9587
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ object ConsoleHostProcess {

fun printStackTrace(error: Throwable) {
fun makeError(err: Throwable): PrintErrorMessage.Error = PrintErrorMessage.Error(
error::class.qualifiedName?.let { "$it: " } + err.message.orEmpty(),
err::class.qualifiedName?.let { "$it: " } + err.message.orEmpty(),
err.stackTrace.map {
StackTrace(it.fileName, it.className, it.methodName, it.lineNumber)
},
Expand Down

0 comments on commit 39e9587

Please sign in to comment.