Add message to task failure message (#183)

This commit is contained in:
Jacek Sieka 2021-05-06 09:46:58 +02:00 committed by GitHub
parent 645d62db78
commit 43b8aada20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -514,8 +514,9 @@ template taskFutureLocation(future: FutureBase): string =
template taskErrorMessage(future: FutureBase): string =
"Asynchronous task " & taskFutureLocation(future) &
" finished with an exception \"" & $future.error.name & "\"!\nStack trace: " &
future.error.getStackTrace()
" finished with an exception \"" & $future.error.name &
"\"!\nMessage: " & future.error.msg &
"\nStack trace: " & future.error.getStackTrace()
template taskCancelMessage(future: FutureBase): string =
"Asynchronous task " & taskFutureLocation(future) & " was cancelled!"