Update routes.dart
This commit is contained in:
parent
127a66e63b
commit
4453f7107b
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ configureAfter(Angel app) async {
|
||||||
// Set our application up to handle different errors.
|
// Set our application up to handle different errors.
|
||||||
var errors = new ErrorHandler(handlers: {
|
var errors = new ErrorHandler(handlers: {
|
||||||
404: (req, res) async =>
|
404: (req, res) async =>
|
||||||
res.render('error', {'message': 'No file exists at ${req.path}.'}),
|
res.render('error', {'message': 'No file exists at /${req.path}.'}),
|
||||||
500: (req, res) async => res.render('error', {'message': req.error.message})
|
500: (req, res) async => res.render('error', {'message': req.error.message})
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue