Skip to content

Commit

Permalink
🐛 Fix: upyun url-options is not required
Browse files Browse the repository at this point in the history
  • Loading branch information
Molunerfinn committed Nov 9, 2022
1 parent 0ded31d commit 9736a11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/plugins/uploader/qiniu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ const handle = async (ctx: IPicGo): Promise<IPicGo> => {
title: ctx.i18n.translate<ILocalesKey>('UPLOAD_FAILED'),
body: body.msg
})
ctx.log.error('qiniu error', body)
throw new Error('Upload failed')
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/uploader/upyun.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const config = (ctx: IPicGo): IPluginConfig[] => {
get alias () { return ctx.i18n.translate<ILocalesKey>('PICBED_UPYUN_OPTIONS') },
get message () { return ctx.i18n.translate<ILocalesKey>('PICBED_UPYUN_MESSAGE_OPTIONS') },
default: userConfig.options || '',
required: true
required: false
},
{
name: 'path',
Expand Down

0 comments on commit 9736a11

Please sign in to comment.