Skip to content

Commit

Permalink
better error handling for widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasHeidingsfeld committed Jun 22, 2019
1 parent b9209da commit 96febc8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/src/widget/power_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,13 @@ class _PowerWidgetState extends PowerState<PowerWidget> {
try {
Power.setDI(context);
built = widget.build(context);
} on Object catch (ex) {
}
/*on Object catch (ex) {
error = ex;
}*/
finally {
BindingHelper.buildBindableWidgetfinished(this);
}
BindingHelper.buildBindableWidgetfinished(this);

if (error != null) {
throw error;
Expand Down

0 comments on commit 96febc8

Please sign in to comment.