zek 14.2.74 → 14.2.75

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
@@ -1630,25 +1630,7 @@ class HttpErrorHandler {
1630
1630
  else {
1631
1631
  error = response.error;
1632
1632
  }
1633
- let data;
1634
- if (error instanceof ErrorEvent) {
1635
- data = {
1636
- errors: [
1637
- { '': [response.error.message] }
1638
- ]
1639
- };
1640
- }
1641
- if (typeof error === 'string') {
1642
- data = {
1643
- errors: [
1644
- { '': [response.error] }
1645
- ]
1646
- };
1647
- }
1648
- else if (typeof error === 'object') {
1649
- data = error;
1650
- }
1651
- return ObjectHelper.isDefined(data) ? of(data) : of(result);
1633
+ return ObjectHelper.isDefined(error) ? of(error) : of(result);
1652
1634
  };
1653
1635
  }
1654
1636
  showError(serviceName, operation, response) {