Browse Source

neon: Fix interactive bloc errors

pull/271/head
jld3103 2 years ago
parent
commit
e06fd96ae5
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 10
      packages/neon/neon/lib/src/utils/bloc.dart

10
packages/neon/neon/lib/src/utils/bloc.dart

@ -16,7 +16,7 @@ abstract class InteractiveBloc extends Bloc {
Future refresh();
void addError(final Object error) {
_errorsStreamController.add(e);
_errorsStreamController.add(error);
}
// ignore: avoid_void_async
@ -33,10 +33,10 @@ abstract class InteractiveBloc extends Bloc {
}
await (refresh ?? this.refresh)();
} catch (e, s) {
debugPrint(e.toString());
debugPrint(s.toString());
addError(e);
} catch (error, stacktrace) {
debugPrint(error.toString());
debugPrint(stacktrace.toString());
addError(error);
}
}
}

Loading…
Cancel
Save