TF-4136 Add config Sentry
This commit is contained in:
@@ -147,8 +147,8 @@ class FileUploader {
|
||||
resultJson: resultJson,
|
||||
fileName: argsUpload.fileInfo.fileName);
|
||||
}
|
||||
} on DioError catch (exception) {
|
||||
logWarning('FileUploader::_handleUploadAttachmentAction():DioError: $exception');
|
||||
} on DioException catch (exception) {
|
||||
logWarning('FileUploader::_handleUploadAttachmentAction():DioException: $exception');
|
||||
|
||||
throw exception.copyWith(
|
||||
requestOptions: exception.requestOptions.copyWith(data: ''));
|
||||
|
||||
@@ -62,7 +62,7 @@ class UploadAttachment with EquatableMixin {
|
||||
_updateEvent(Right(SuccessAttachmentUploadState(uploadTaskId, attachment, fileInfo)));
|
||||
} catch (error, stackTrace) {
|
||||
logWarning('UploadAttachment::upload():ERROR: $error');
|
||||
if (error is DioError && error.type == DioErrorType.cancel) {
|
||||
if (error is DioException && error.type == DioExceptionType.cancel) {
|
||||
_updateEvent(Left(CancelAttachmentUploadState(uploadTaskId)));
|
||||
} else {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user