Skip to content

Commit

Permalink
update error notifications to include service down code
Browse files Browse the repository at this point in the history
  • Loading branch information
juancwu committed Apr 23, 2024
1 parent 652fd97 commit ac598c9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/pages/MyTeam.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {
isTeamNameAvailable,
} from "@/services/utils/teams";
import type { TeamData } from "@/services/utils/types";
import { type FirebaseError } from "firebase/app";
import {
type FormEventHandler,
Fragment,
Expand Down Expand Up @@ -72,7 +71,9 @@ export const MyTeamPage = () => {
} catch (e) {
showNotification({
title: "Oh Uh! Error Creating Team",
message: (e as FirebaseError).message,
message: `Please try again later. (${
(e as Error).message
})`,
});
}
} else {
Expand All @@ -99,10 +100,10 @@ export const MyTeamPage = () => {
setOpenInviteDialog(false);
setInviteEmails([]);
}
} catch {
} catch (e) {
showNotification({
title: "Error Sending Invitations",
message: "Please try again later.",
message: `Please try again later. (${(e as Error).message})`,
});
} finally {
setDisableAllActions(false);
Expand Down

0 comments on commit ac598c9

Please sign in to comment.