mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Propogate errors when uploading a file fails
This cancels the wait and ensures an error is displayed
This commit is contained in:
parent
4c07dd56a9
commit
6c9e316884
1 changed files with 4 additions and 0 deletions
|
|
@ -73,6 +73,10 @@ function uploadFile ({ id, uploadSignedUrl }, contentType, contentObjUrl) {
|
|||
};
|
||||
xhr.send(blob);
|
||||
});
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log('error uploading file', err)
|
||||
return undefined
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue