Change the signatures of the raiseApiError procedure to be consistent.

This commit is contained in:
Jonathan Bernard 2025-01-03 08:48:57 -06:00
parent 6bee730d7a
commit feeef6429c
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
# Package # Package
version = "0.4.0" version = "0.4.1"
author = "Jonathan Bernard" author = "Jonathan Bernard"
description = "Jonathan's opinionated extensions and auth layer for Jester." description = "Jonathan's opinionated extensions and auth layer for Jester."
license = "MIT" license = "MIT"

View File

@ -22,7 +22,7 @@ proc raiseApiError*(respCode: HttpCode, respMsg: string, msg = "") =
raise apiError 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( var apiError = newApiError(
parent = parent, parent = parent,
respCode = respCode, respCode = respCode,