TF-2769 Remove stacktrace of exception from UI
This commit is contained in:
@@ -64,7 +64,7 @@ class UploadAttachment with EquatableMixin {
|
|||||||
if (e is DioError && e.type == DioErrorType.cancel) {
|
if (e is DioError && e.type == DioErrorType.cancel) {
|
||||||
_updateEvent(Left(CancelAttachmentUploadState(uploadTaskId)));
|
_updateEvent(Left(CancelAttachmentUploadState(uploadTaskId)));
|
||||||
} else {
|
} else {
|
||||||
_updateEvent(Left(ErrorAttachmentUploadState(uploadId: uploadTaskId, exception: e)));
|
_updateEvent(Left(ErrorAttachmentUploadState(uploadId: uploadTaskId)));
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
await _progressStateController.close();
|
await _progressStateController.close();
|
||||||
|
|||||||
@@ -280,7 +280,7 @@ class UploadController extends BaseController {
|
|||||||
if (currentContext != null && currentOverlayContext != null) {
|
if (currentContext != null && currentOverlayContext != null) {
|
||||||
appToast.showToastErrorMessage(
|
appToast.showToastErrorMessage(
|
||||||
currentOverlayContext!,
|
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,
|
leadingSVGIconColor: Colors.white,
|
||||||
leadingSVGIcon: imagePaths.icAttachment);
|
leadingSVGIcon: imagePaths.icAttachment);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user