Untitled

mail@pastecode.io avatar
unknown
javascript
2 years ago
180 B
2
Indexable
Never
//error.js
const setError = (code, message) => {
    const error = new Error;
    error.code = code;
    error.message = message;
    return error;
}

module.exports = { setError }