refactor(sentry): standardize exceptions to prevent Sentry minification
This commit is contained in:
@@ -86,7 +86,7 @@ extension HandleLabelActionTypeExtension on LabelController {
|
||||
);
|
||||
} else if (editLabelInteractor == null) {
|
||||
consumeState(
|
||||
Stream.value(Left(EditLabelFailure(InteractorNotInitialized()))),
|
||||
Stream.value(Left(EditLabelFailure(const InteractorNotInitialized()))),
|
||||
);
|
||||
} else {
|
||||
final labelId = selectedLabel.id;
|
||||
@@ -159,7 +159,7 @@ extension HandleLabelActionTypeExtension on LabelController {
|
||||
} else if (deleteALabelInteractor == null) {
|
||||
emitFailure(
|
||||
controller: this,
|
||||
failure: DeleteALabelFailure(InteractorNotInitialized()),
|
||||
failure: DeleteALabelFailure(const InteractorNotInitialized()),
|
||||
);
|
||||
} else {
|
||||
consumeState(deleteALabelInteractor!.execute(accountId, label));
|
||||
|
||||
Reference in New Issue
Block a user