High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix(server): cancel error (#3332)
Jason Rasmussen6e953ff5eb09
diff --git a/web/src/lib/utils/handle-error.ts b/web/src/lib/utils/handle-error.tsindex 59c2b20ec9..006823ebb8 100644--- a/web/src/lib/utils/handle-error.ts+++ b/web/src/lib/utils/handle-error.ts@@ -1,5 +1,5 @@import type { ApiError } from '@api';-import { CanceledError } from 'axios';+import * as axios from 'axios';import { notificationController, NotificationType } from '../components/shared-components/notification/notification';export async function getServerErrorMessage(error: unknown) {@@ -17,7 +17,7 @@ export async function getServerErrorMessage(error: unknown) {}export async function handleError(error: unknown, message: string) {- if (error instanceof CanceledError) {+ if (error instanceof axios.CanceledError) {return;}