1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-25 10:43:13 +02:00

fix(server): cancel error (#3332)

This commit is contained in:
Jason Rasmussen 2023-07-19 00:40:20 -04:00 committed by GitHub
parent 7316ad5a72
commit 6e953ff5eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}