Skip to content

Commit 6a3b0cf

Browse files
committed
Directly run generate key to preserve error trace
1 parent 227c7cf commit 6a3b0cf

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

index.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,7 @@ class S3Adapter {
144144

145145
let key_without_prefix = filename;
146146
if (this._generateKey instanceof Function) {
147-
try {
148-
key_without_prefix = this._generateKey(filename, contentType, options);
149-
} catch {
150-
throw new Error('Key generation failed');
151-
}
147+
key_without_prefix = this._generateKey(filename, contentType, options);
152148
}
153149

154150
const params = {

0 commit comments

Comments
 (0)