mirror of
https://github.com/stolksdorf/homebrewery.git
synced 2025-12-26 15:41:29 +00:00
moved welcome message and adding in egads errors
This commit is contained in:
14
server/errors.js
Normal file
14
server/errors.js
Normal file
@@ -0,0 +1,14 @@
|
||||
const egads = require('egads');
|
||||
|
||||
|
||||
const Error = egads.extend('Server Error', 500, 'Generic Server Error');
|
||||
|
||||
Error.noBrew = Error.extend('Can not find a brew with that id', 404);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
module.exports = Error;
|
||||
Reference in New Issue
Block a user