Skip to content

Commit

Permalink
fix: handle unhandled errors
Browse files Browse the repository at this point in the history
Hot fix on my phone
  • Loading branch information
iceghost committed Sep 5, 2023
1 parent 4e9dec8 commit 4575ae9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/routes/ErrorReport.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
} from '@bkalendar/core';
export let error: unknown;
$: console.error(error);
</script>

{#if error}
Expand Down Expand Up @@ -42,4 +44,6 @@
bạn chịu khó xóa bớt các dòng của các môn không nằm trong thời khóa biểu này ra khỏi đoạn copy
nha.
</p>
{:else}
<p>{error.message}</p>
{/if}

0 comments on commit 4575ae9

Please sign in to comment.