Skip to content

Commit 527d19e

Browse files
committed
🐛 Fix: smms error message is an object
1 parent fb59681 commit 527d19e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plugins/uploader/smms.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ const handle = async (ctx: IPicGo): Promise<IPicGo> => {
5353
title: ctx.i18n.translate<ILocalesKey>('UPLOAD_FAILED'),
5454
body: body.message
5555
})
56-
throw new Error(body)
56+
throw new Error(body.message)
5757
}
5858
} catch (e: any) {
5959
ctx.log.error(e)
60-
throw new Error(e)
60+
throw e
6161
}
6262
}
6363
}

0 commit comments

Comments
 (0)