Updated framework code format
This commit is contained in:
parent
06d53d6f99
commit
40542c35cc
2 changed files with 6 additions and 2 deletions
|
@ -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);
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue