Last active
August 17, 2020 09:50
-
-
Save wibed/0e78412efe249e07297f08431a12ad28 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Convienience function for short throws | |
func defaultVaporError( | |
_ reason: String, | |
file: String = #file, | |
function: String = #function, | |
line: UInt = #line, | |
column: UInt = #column | |
) -> Abort { | |
return Abort( | |
.badRequest, | |
reason: reason, | |
file: file, | |
function: function, | |
line: line, | |
column: column | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment