@eway-crm/connector 1.0.69 → 1.0.70
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.
- package/lib/ApiConnection.js +3 -0
- package/package.json +1 -1
package/lib/ApiConnection.js
CHANGED
|
@@ -88,6 +88,9 @@ var ApiConnection = /** @class */ (function () {
|
|
|
88
88
|
};
|
|
89
89
|
var errorClb = function (error) {
|
|
90
90
|
var err = new Error('Unhandled connection error when calling ' + methodUrl + ': ' + JSON.stringify(error));
|
|
91
|
+
if ('statusCode' in error && error.statusCode === 413) {
|
|
92
|
+
err = new Error('The file has exceeded the maximum allowed file size for uploading. You can contact eWay-CRM support if you wish to increase the limit.');
|
|
93
|
+
}
|
|
91
94
|
if (errorCallback) {
|
|
92
95
|
errorCallback(err);
|
|
93
96
|
}
|