Skip to content

Commit

Permalink
fix(uploader): fix error handler
Browse files Browse the repository at this point in the history
  • Loading branch information
fangbinwei committed May 27, 2020
1 parent 560c4fd commit 74c08ff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/uploader/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ export async function uploadUris(uris: vscode.Uri[]): Promise<void> {
clipboard.push(templateStore.transform('outputFormat'))

return putObjectResult
}).catch((err) => {
})
u.catch((err) => {
const defaultName = name + ext
err.imageName =
uploadName + (uploadName !== defaultName ? `(${defaultName})` : '')
Expand All @@ -112,6 +113,7 @@ export async function uploadUris(uris: vscode.Uri[]): Promise<void> {
})
setTimeout(() => {
progressResolve()
//TODO: See output channel for more details
Logger.showErrorMessage(
`Failed to upload these images: ${rejects
.map((r) => {
Expand Down

0 comments on commit 74c08ff

Please sign in to comment.