@azrico/webobject 1.5.35 → 1.5.36

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.
@@ -1204,8 +1204,10 @@ var SimpleObject = exports.SimpleObject = /*#__PURE__*/function (_MapableObject)
1204
1204
  type = this.__saveResultIsSuccess ? "normal" : "error";
1205
1205
  }
1206
1206
  if (registerErrors && !this.__saveResultIsSuccess) {
1207
- console.error("bad save result : ", this.__saveResultObject);
1208
- SimpleObject.addError(this, "save result is not valid", "the response from server was not valid", true);
1207
+ var sr = this.__saveResultObject;
1208
+ var errorString = sr == null ? "" : sr instanceof Error ? sr.message : JSON.stringify(sr);
1209
+ console.error("bad save result : ", sr);
1210
+ SimpleObject.addError(this, "save result is not valid", errorString, true);
1209
1211
  }
1210
1212
  this.__saveResultType = type;
1211
1213
  return type;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azrico/webobject",
3
- "version": "1.5.35",
3
+ "version": "1.5.36",
4
4
  "description": "Stateful object",
5
5
  "author": "Azrideus",
6
6
  "license": "MIT",