Skip to content

Commit 89c4473

Browse files
committed
fixed error handling message
1 parent 4932502 commit 89c4473

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

express-s3proxy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ const proxy = new S3Proxy({ bucket, credentials })
8383
proxy.init()
8484

8585
proxy.on('error', (err) => {
86-
throw new Error(`error initializing s3proxy for bucket ${bucket}: ${err.statusCode} ${err.code}`)
86+
throw new Error(`error initializing s3proxy for bucket ${bucket}: [${err.name}] ${err.message}`)
8787
})
8888

8989
// basic health check

0 commit comments

Comments
 (0)