@onehat/data 1.15.3 → 1.15.5
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/package.json
CHANGED
package/src/Repository/Ajax.js
CHANGED
|
@@ -132,7 +132,6 @@ class AjaxRepository extends Repository {
|
|
|
132
132
|
|
|
133
133
|
this.registerEvents([
|
|
134
134
|
'beforeLoad',
|
|
135
|
-
'connectionError',
|
|
136
135
|
]);
|
|
137
136
|
|
|
138
137
|
// Respond to Repository events
|
|
@@ -836,7 +835,8 @@ class AjaxRepository extends Repository {
|
|
|
836
835
|
console.log(url + ' error', error);
|
|
837
836
|
console.log('response:', error.response);
|
|
838
837
|
}
|
|
839
|
-
this.
|
|
838
|
+
this.throwError(error);
|
|
839
|
+
return;
|
|
840
840
|
});
|
|
841
841
|
}
|
|
842
842
|
|
|
@@ -134,7 +134,9 @@ class OneBuildRepository extends AjaxRepository {
|
|
|
134
134
|
return false;
|
|
135
135
|
}
|
|
136
136
|
// END MOD
|
|
137
|
-
|
|
137
|
+
|
|
138
|
+
this.throwError(error);
|
|
139
|
+
return;
|
|
138
140
|
});
|
|
139
141
|
}
|
|
140
142
|
|
|
@@ -320,7 +322,7 @@ class OneBuildRepository extends AjaxRepository {
|
|
|
320
322
|
const response = result.data;
|
|
321
323
|
if (!response.success) {
|
|
322
324
|
this.throwError(response.data); // TODO: Fix back-end, so OneBuild submits the error message on response.message, not response.data
|
|
323
|
-
return;
|
|
325
|
+
return false;
|
|
324
326
|
}
|
|
325
327
|
|
|
326
328
|
const userData = response.data;
|