@idea-ionic/uncommon 8.13.9 → 8.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -723,7 +723,11 @@ class IDEAAWSAPIService {
|
|
|
723
723
|
catch (_) {
|
|
724
724
|
e = {};
|
|
725
725
|
}
|
|
726
|
-
|
|
726
|
+
// the id of the request of an error the back-end didn't handle, to show as a code to report
|
|
727
|
+
const error = new Error(e.message || 'Unknown error!');
|
|
728
|
+
if (e.requestId)
|
|
729
|
+
error.requestId = e.requestId;
|
|
730
|
+
reject(error);
|
|
727
731
|
}
|
|
728
732
|
/**
|
|
729
733
|
* Use the HttpClient to execute a raw request.
|
|
@@ -1125,7 +1129,9 @@ class IDEAOldAttachmentsComponent {
|
|
|
1125
1129
|
catch (error) {
|
|
1126
1130
|
this.uploadErrors.update(errors => [...errors, name]);
|
|
1127
1131
|
this.removeAttachment(attachment);
|
|
1128
|
-
this._message.error('IDEA_TEAMS.ATTACHMENTS.ERROR_UPLOADING_ATTACHMENT'
|
|
1132
|
+
this._message.error('IDEA_TEAMS.ATTACHMENTS.ERROR_UPLOADING_ATTACHMENT', {
|
|
1133
|
+
requestId: error.requestId
|
|
1134
|
+
});
|
|
1129
1135
|
}
|
|
1130
1136
|
}
|
|
1131
1137
|
hideUploadError(err) {
|
|
@@ -1143,7 +1149,9 @@ class IDEAOldAttachmentsComponent {
|
|
|
1143
1149
|
await Browser.open({ url });
|
|
1144
1150
|
}
|
|
1145
1151
|
catch (error) {
|
|
1146
|
-
this._message.error('IDEA_TEAMS.ATTACHMENTS.ERROR_OPENING_ATTACHMENT'
|
|
1152
|
+
this._message.error('IDEA_TEAMS.ATTACHMENTS.ERROR_OPENING_ATTACHMENT', {
|
|
1153
|
+
requestId: error.requestId
|
|
1154
|
+
});
|
|
1147
1155
|
}
|
|
1148
1156
|
finally {
|
|
1149
1157
|
this._loading.hide();
|