@embeddable.com/sdk-core 4.1.2-next.0 → 4.1.2
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/lib/index.esm.js +3 -2
- package/lib/index.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/dev.test.ts +1 -1
- package/src/dev.ts +3 -2
package/lib/index.esm.js
CHANGED
|
@@ -22400,8 +22400,9 @@ const sendBuildChanges = async (ctx) => {
|
|
|
22400
22400
|
await sendBuild(ctx, { workspaceId: previewWorkspace, token });
|
|
22401
22401
|
}
|
|
22402
22402
|
catch (e) {
|
|
22403
|
-
|
|
22404
|
-
|
|
22403
|
+
const errorMessage = (_d = (_c = (_b = (_a = e.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.errorMessage) !== null && _c !== void 0 ? _c : e.message) !== null && _d !== void 0 ? _d : "Unknown error";
|
|
22404
|
+
sending.fail(`Data models and/or security context synchronization failed with error: ${errorMessage}`);
|
|
22405
|
+
return sendMessage("dataModelsAndOrSecurityContextUpdateError", { error: errorMessage });
|
|
22405
22406
|
}
|
|
22406
22407
|
sending.succeed(`Data models and/or security context synchronized`);
|
|
22407
22408
|
sendMessage("dataModelsAndOrSecurityContextUpdateSuccess");
|