From e06fd96ae52bb9ad7d5f505084604e843899aa6c Mon Sep 17 00:00:00 2001 From: jld3103 Date: Sat, 22 Apr 2023 11:51:51 +0200 Subject: [PATCH] neon: Fix interactive bloc errors --- packages/neon/neon/lib/src/utils/bloc.dart | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/neon/neon/lib/src/utils/bloc.dart b/packages/neon/neon/lib/src/utils/bloc.dart index 195ddfa0..8df2828b 100644 --- a/packages/neon/neon/lib/src/utils/bloc.dart +++ b/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); } } }