Update dependencies, log errors as errors.
This commit is contained in:
@ -76,8 +76,8 @@ proc makeDataBody*(
|
||||
proc makeStatusBody*(details: string): JsonNode = %*{"details":details}
|
||||
|
||||
template sendErrorResp*(err: ref ApiError, knownOrigins: seq[string]): void =
|
||||
log().debug err.respMsg & ( if err.msg.len > 0: ": " & err.msg else: "")
|
||||
if not err.parent.isNil: log().debug " original exception: " & err.parent.msg
|
||||
log().error err.respMsg & ( if err.msg.len > 0: ": " & err.msg else: "")
|
||||
if not err.parent.isNil: log().error " original exception: " & err.parent.msg
|
||||
sendJsonResp(makeStatusBody(err.respMsg), err.respCode, knownOrigins, @{:})
|
||||
|
||||
## CORS support
|
||||
|
Reference in New Issue
Block a user