Skip to content

Commit a0be302

Browse files
Added the type of an error to error logging (#148)
1 parent 4dcb7f4 commit a0be302

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/prologue/core/application.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ proc handleContext*(app: Prologue, ctx: Context) {.async, gcsafe.} =
466466
# catch abort error
467467
logging.debug e.msg
468468
except Exception as e:
469-
logging.error e.msg
469+
logging.error $e.name & ": " & e.msg
470470
ctx.response.code = Http500
471471
ctx.response.body = e.msg
472472
ctx.response.setHeader("content-type", "text/plain; charset=UTF-8")

0 commit comments

Comments
 (0)