eservices-core 1.0.355 → 1.0.356

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * eservices-core v1.0.355
2
+ * eservices-core v1.0.356
3
3
  * (c) 2022 ESERVICES
4
4
  */
5
5
  'use strict';
@@ -2131,7 +2131,12 @@ function requestHandler(callback, options = {}) {
2131
2131
  timeout: 12 * 1000
2132
2132
  });
2133
2133
  else {
2134
- NotificationSystem.add('error', error);
2134
+ if (error === null || error === void 0 ? void 0 : error.message)
2135
+ NotificationSystem.add('error', error.message);
2136
+ else {
2137
+ console.warn(error);
2138
+ NotificationSystem.add('error', CoreError.ApiResponseParseFailed().message);
2139
+ }
2135
2140
  }
2136
2141
  }
2137
2142
  if (options.throw)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eservices-core",
3
- "version": "1.0.355",
3
+ "version": "1.0.356",
4
4
  "description": "----",
5
5
  "author": "",
6
6
  "scripts": {