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 c480246 commit b54af0cCopy full SHA for b54af0c
src/modules/cos/index.ts
@@ -143,11 +143,7 @@ export default class Cos {
143
} catch (err) {
144
const e = convertCosError(err);
145
if (e.code === 'BucketAlreadyExists' || e.code === 'BucketAlreadyOwnedByYou') {
146
- if (!inputs.force) {
147
- throw constructCosError(`API_COS_putBucket`, err);
148
- } else {
149
- console.log(`Bucket ${inputs.bucket} already exist.`);
150
- }
+ console.log(`Bucket ${inputs.bucket} already exist.`);
151
} else {
152
// 失败重试 1 次,如果再次出错,正常处理
153
if (this.retryTimes < this.maxRetryTimes) {
0 commit comments