fix unexpected errors

This commit is contained in:
Sepehr Safari
2024-01-28 12:50:05 +03:30
committed by fiatjaf_
parent 7a9d432686
commit 7ec6d127b0
2 changed files with 87 additions and 2 deletions

View File

@@ -382,6 +382,9 @@ export async function uploadFile(
if (response.status === 402) {
throw new Error('Payment required!')
}
// unknown error
throw new Error('Unknown error in uploading file!')
}
try {