1
0
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:
Scott Tolksdorf
2017-01-01 10:38:36 -08:00
parent 1173af5803
commit 95c09ba7ad
8 changed files with 82 additions and 142 deletions

14
server/errors.js Normal file
View 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;