Change the signatures of the raiseApiError
procedure to be consistent.
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user