@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
|
-
|
|
1208
|
-
|
|
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;
|