zek 14.2.73 → 14.2.74
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/fesm2020/zek.mjs
CHANGED
|
@@ -1632,16 +1632,21 @@ class HttpErrorHandler {
|
|
|
1632
1632
|
}
|
|
1633
1633
|
let data;
|
|
1634
1634
|
if (error instanceof ErrorEvent) {
|
|
1635
|
-
data = {
|
|
1635
|
+
data = {
|
|
1636
|
+
errors: [
|
|
1637
|
+
{ '': [response.error.message] }
|
|
1638
|
+
]
|
|
1639
|
+
};
|
|
1636
1640
|
}
|
|
1637
1641
|
if (typeof error === 'string') {
|
|
1638
|
-
data = {
|
|
1642
|
+
data = {
|
|
1643
|
+
errors: [
|
|
1644
|
+
{ '': [response.error] }
|
|
1645
|
+
]
|
|
1646
|
+
};
|
|
1639
1647
|
}
|
|
1640
1648
|
else if (typeof error === 'object') {
|
|
1641
|
-
|
|
1642
|
-
? error.errors
|
|
1643
|
-
: error;
|
|
1644
|
-
data = errors;
|
|
1649
|
+
data = error;
|
|
1645
1650
|
}
|
|
1646
1651
|
return ObjectHelper.isDefined(data) ? of(data) : of(result);
|
|
1647
1652
|
};
|