Skip to content

Commit

Permalink
Provide a notification on editor build failing.
Browse files Browse the repository at this point in the history
  • Loading branch information
barnettwilliam committed Jan 22, 2024
1 parent c4cc805 commit 6ec5118
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions platform/src/Playground.js
Original file line number Diff line number Diff line change
Expand Up @@ -1033,6 +1033,8 @@ async function checkEditorReady(statusUrl, editorInstanceUrl, editorPanelId, edi
if (result.error){
// Unsuccessful
console.log("Editor failed start.");
Metro.notify.killAll();
notification("Build Failed", "An error occurred while building the editor.");

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

0 comments on commit 6ec5118

Please sign in to comment.