« get me outta code hell

tui-lib - Pure Node.js library for making visual command-line programs (ala vim, ncdu)
about summary refs log tree commit diff
path: root/exception.js
diff options
context:
space:
mode:
Diffstat (limited to 'exception.js')
-rw-r--r--exception.js7
1 files changed, 0 insertions, 7 deletions
diff --git a/exception.js b/exception.js
deleted file mode 100644
index e88ff99..0000000
--- a/exception.js
+++ /dev/null
@@ -1,7 +0,0 @@
-module.exports = function exception(code, message) {
-  // Makes a custom error with the given code and message.
-
-  const err = new Error(`${code}: ${message}`)
-  err.code = code
-  return err
-}