Skip to content

Commit 9736a11

Browse files
committed
🐛 Fix: upyun url-options is not required
1 parent 0ded31d commit 9736a11

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/plugins/uploader/qiniu.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ const handle = async (ctx: IPicGo): Promise<IPicGo> => {
5757
title: ctx.i18n.translate<ILocalesKey>('UPLOAD_FAILED'),
5858
body: body.msg
5959
})
60+
ctx.log.error('qiniu error', body)
6061
throw new Error('Upload failed')
6162
}
6263
}

src/plugins/uploader/upyun.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ const config = (ctx: IPicGo): IPluginConfig[] => {
125125
get alias () { return ctx.i18n.translate<ILocalesKey>('PICBED_UPYUN_OPTIONS') },
126126
get message () { return ctx.i18n.translate<ILocalesKey>('PICBED_UPYUN_MESSAGE_OPTIONS') },
127127
default: userConfig.options || '',
128-
required: true
128+
required: false
129129
},
130130
{
131131
name: 'path',

0 commit comments

Comments
 (0)