ApiError appends parent stacktrace to its own.
This commit is contained in:
parent
3c3edacd7c
commit
c75c973350
@ -1,6 +1,6 @@
|
||||
# Package
|
||||
|
||||
version = "0.4.3"
|
||||
version = "0.4.4"
|
||||
author = "Jonathan Bernard"
|
||||
description = "Jonathan's opinionated extensions and auth layer for Jester."
|
||||
license = "MIT"
|
||||
|
@ -10,6 +10,7 @@ proc newApiError*(parent: ref Exception = nil, respCode: HttpCode, respMsg: stri
|
||||
result = newException(ApiError, msg, parent)
|
||||
result.respCode = respCode
|
||||
result.respMsg = respMsg
|
||||
result.trace &= parent.trace
|
||||
|
||||
|
||||
proc raiseApiError*(respCode: HttpCode, respMsg: string, msg = "") =
|
||||
|
Loading…
x
Reference in New Issue
Block a user