Skip to content

Commit 178a95a

Browse files
committed
fix(cos): optomize error type
1 parent 347a2b1 commit 178a95a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/cos/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ class Cos {
592592
if (e.error && e.error.Code && e.error.Code === 'NoSuchBucket') {
593593
console.log(`Bucket ${inputs.bucket} not exist`);
594594
} else {
595-
throw new TypeError(`DEPLOY_COS_EXEC_HOOK`, e.message, e.stack);
595+
throw new TypeError(`API_APIGW_deleteBucket`, e.message, e.stack);
596596
}
597597
}
598598
}

0 commit comments

Comments
 (0)