Started converting some of the backend over to Typescript, still trying to figure out a overall file strucure, in terms of adding the ability to have multiple backend fileserver options
This commit is contained in:
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
"use strict";
|
||||
const createError = (message, code, exception) => {
|
||||
let error = new Error(message);
|
||||
error.message = message;
|
||||
error.code = code;
|
||||
error.exception = exception;
|
||||
throw error;
|
||||
};
|
||||
module.exports = createError;
|
||||
Reference in New Issue
Block a user