Skip to content

Commit

Permalink
refact: web: drop alert error code (#377)
Browse files Browse the repository at this point in the history
  • Loading branch information
crlssn authored Jan 10, 2025
1 parent 1afa153 commit 909ba5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/http/requests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ const tryCatch = async <T>(fn: () => Promise<T>): Promise<T | void> => {
// DEBT: Filter out some error codes to alert the user until we have a better way to handle them.
const ignoredCodes: Code[] = [Code.Unauthenticated, Code.Unavailable, Code.Canceled]
if (!ignoredCodes.includes(error.code)) {
alert(`${error.code}: ${error.message}`)
alert(error.message)
return
}
}
Expand Down

0 comments on commit 909ba5a

Please sign in to comment.