diff options
Diffstat (limited to 'util/exception.js')
-rw-r--r-- | util/exception.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/exception.js b/util/exception.js index e88ff99..1271b6a 100644 --- a/util/exception.js +++ b/util/exception.js @@ -1,4 +1,4 @@ -module.exports = function exception(code, message) { +export default function exception(code, message) { // Makes a custom error with the given code and message. const err = new Error(`${code}: ${message}`) |