Change the signatures of the raiseApiError
procedure to be consistent.
This commit is contained in:
parent
6bee730d7a
commit
feeef6429c
@ -1,6 +1,6 @@
|
||||
# Package
|
||||
|
||||
version = "0.4.0"
|
||||
version = "0.4.1"
|
||||
author = "Jonathan Bernard"
|
||||
description = "Jonathan's opinionated extensions and auth layer for Jester."
|
||||
license = "MIT"
|
||||
|
@ -22,7 +22,7 @@ proc raiseApiError*(respCode: HttpCode, respMsg: string, msg = "") =
|
||||
raise apiError
|
||||
|
||||
|
||||
proc raiseApiError*(parent: ref Exception, respCode: HttpCode, respMsg: string = "", msg = "") =
|
||||
proc raiseApiError*(respCode: HttpCode, parent: ref Exception, respMsg: string = "", msg = "") =
|
||||
var apiError = newApiError(
|
||||
parent = parent,
|
||||
respCode = respCode,
|
||||
|
Loading…
x
Reference in New Issue
Block a user