Skip to content

Commit

Permalink
TF-2769 Remove stacktrace of exception from UI
Browse files Browse the repository at this point in the history
  • Loading branch information
tddang-linagora authored and hoangdat committed Sep 10, 2024
1 parent 7bc466b commit b4e9ca3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/features/upload/domain/model/upload_attachment.dart
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class UploadAttachment with EquatableMixin {
if (e is DioError && e.type == DioErrorType.cancel) {
_updateEvent(Left(CancelAttachmentUploadState(uploadTaskId)));
} else {
_updateEvent(Left(ErrorAttachmentUploadState(uploadId: uploadTaskId, exception: e)));
_updateEvent(Left(ErrorAttachmentUploadState(uploadId: uploadTaskId)));
}
} finally {
await _progressStateController.close();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ class UploadController extends BaseController {
if (currentContext != null && currentOverlayContext != null) {
appToast.showToastErrorMessage(
currentOverlayContext!,
'${AppLocalizations.of(currentContext!).can_not_upload_this_file_as_attachments}. ${failure.exception ?? ''}',
AppLocalizations.of(currentContext!).can_not_upload_this_file_as_attachments,
leadingSVGIconColor: Colors.white,
leadingSVGIcon: imagePaths.icAttachment);
}
Expand Down

0 comments on commit b4e9ca3

Please sign in to comment.