kui-utils 0.0.26 → 0.0.27
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/cjs/index.js +6 -1
- package/cjs/index.js.map +1 -1
- package/index.js +6 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
package/cjs/index.js
CHANGED
|
@@ -2232,7 +2232,12 @@ var Loader = /** @class */ (function () {
|
|
|
2232
2232
|
};
|
|
2233
2233
|
this.setError = function (errorMessage, err) {
|
|
2234
2234
|
_this.hasError = true;
|
|
2235
|
-
|
|
2235
|
+
if (err.status === 403) {
|
|
2236
|
+
_this.errorMessage = "You do not have access to this";
|
|
2237
|
+
}
|
|
2238
|
+
else {
|
|
2239
|
+
_this.errorMessage = "".concat(errorMessage || "request").concat(err ? ": \n".concat(formatError(err)) : "");
|
|
2240
|
+
}
|
|
2236
2241
|
};
|
|
2237
2242
|
this.cleanError = function () {
|
|
2238
2243
|
_this.hasError = false;
|