Skip to content

Commit

Permalink
Add event for MakeCode load failure
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-robert committed Nov 15, 2024
1 parent 23a9929 commit abbcb49
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/hooks/project-hooks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,9 @@ export const ProjectProvider = ({
});
} catch (e) {
if (e instanceof CodeEditorError) {
logging.event({
type: "makecode-load-failed",
});
openEditorTimedOutDialog();
}
}
Expand Down

0 comments on commit abbcb49

Please sign in to comment.