We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 618cbc6 commit 6355e1bCopy full SHA for 6355e1b
src/plugins/uploader/tcyun.ts
@@ -112,7 +112,8 @@ const handle = async (ctx: IPicGo): Promise<IPicGo | boolean> => {
112
return {
113
statusCode: 400,
114
body: {
115
- msg: ctx.i18n.translate<ILocalesKey>('AUTH_FAILED')
+ msg: ctx.i18n.translate<ILocalesKey>('AUTH_FAILED'),
116
+ err
117
}
118
119
})
@@ -123,7 +124,7 @@ const handle = async (ctx: IPicGo): Promise<IPicGo | boolean> => {
123
124
body = res
125
126
if (body.statusCode === 400) {
- throw new Error(body.msg || body.message)
127
+ throw new Error(body?.body?.err || body?.body?.msg || body?.body?.message)
128
129
const optionUrl = tcYunOptions.options || ''
130
if (useV4 && body.message === 'SUCCESS') {
0 commit comments