Skip to content

Commit

Permalink
Added Error handling on grades page
Browse files Browse the repository at this point in the history
  • Loading branch information
balaktsisc committed Feb 27, 2024
1 parent 76bc26e commit aeff27c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/routes/pages/grades/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import Flipper from "$components/shared/Flipper.svelte";
import TestComponentB from '../../test/testComponentB.svelte';
import { flipped } from "./flipstore";
import ErrorLandingCard from '$components/errorLanding/ErrorLandingCard.svelte';
Expand Down Expand Up @@ -87,8 +88,8 @@
<Grades semesterId = {semesterId} searchQuery = {searchQuery} />

{:catch error}
<p>{error.message}</p>
{/await}
<ErrorLandingCard errorMsg={error.message} />
{/await}
</ion-content>
</ion-tab>

Expand Down

0 comments on commit aeff27c

Please sign in to comment.