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