TF-4136 Add config Sentry

This commit is contained in:
dab246
2025-12-15 12:01:21 +07:00
committed by Dat H. Pham
parent ad768f1552
commit ec75bb3cab
46 changed files with 804 additions and 216 deletions
@@ -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 {