Skip to content

Commit 438ee3e

Browse files
committed
fix(storage): propagate the error
1 parent c318f69 commit 438ee3e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: src/storage/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,8 @@ export function useStorageFile(
228228
})
229229
.catch((err) => {
230230
uploadError.value = err
231+
// propagate the error
232+
return Promise.reject(err)
231233
})
232234
.finally(() => {
233235
unsub()

0 commit comments

Comments
 (0)