Updated framework code format

This commit is contained in:
thomashii 2022-01-08 12:51:18 +08:00
parent 06d53d6f99
commit 40542c35cc
2 changed files with 6 additions and 2 deletions

View file

@ -32,7 +32,9 @@ void main() {
app.get('/num/global', ioc((num global) => global)); app.get('/num/global', ioc((num global) => global));
app.errorHandler = (e, req, res) { app.errorHandler = (e, req, res) {
stderr..writeln(e.error)..writeln(e.stackTrace); stderr
..writeln(e.error)
..writeln(e.stackTrace);
}; };
}); });

View file

@ -69,7 +69,9 @@ void main() {
app.get('/error', (req, res) => res.addError(StateError('wtf'))); app.get('/error', (req, res) => res.addError(StateError('wtf')));
app.errorHandler = (e, req, res) async { app.errorHandler = (e, req, res) async {
stderr..writeln(e.error)..writeln(e.stackTrace); stderr
..writeln(e.error)
..writeln(e.stackTrace);
}; };
}); });