1
0
mirror of https://github.com/immich-app/immich.git synced 2025-06-17 03:47:45 +02:00

fix(web): show warning if upload completed with errors (#3634)

This commit is contained in:
Russell Tan
2023-08-10 06:38:29 -07:00
committed by GitHub
parent a815592954
commit a8b01dc21a
3 changed files with 18 additions and 2 deletions

View File

@ -173,6 +173,8 @@ async function fileUploader(
}
function handleUploadError(asset: File, respBody = '{}', extraMessage?: string) {
uploadAssetsStore.errorCounter.update((count) => count + 1);
try {
const res = JSON.parse(respBody);