Skip to content

Commit

Permalink
On failure of editor creation, display the error reported by the tool…
Browse files Browse the repository at this point in the history
… in a distinctive style and remove the previous editor from the menu and its link.
  • Loading branch information
barnettwilliam committed Jan 23, 2024
1 parent 6ec5118 commit 8f9cd51
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion platform/src/Playground.js
Original file line number Diff line number Diff line change
Expand Up @@ -1033,8 +1033,10 @@ async function checkEditorReady(statusUrl, editorInstanceUrl, editorPanelId, edi
if (result.error){
// Unsuccessful
console.log("Editor failed start.");
sessionStorage.removeItem(editorPanelId);
activityManager.setActivityVisibility(editorActivityId, false);
Metro.notify.killAll();
notification("Build Failed", "An error occurred while building the editor.");
notification("Build Failed", result.error, "ribbed-lightAmber");

} else if (!result.editorReady){
await new Promise(resolve => setTimeout(resolve, 2000));
Expand Down

0 comments on commit 8f9cd51

Please sign in to comment.