You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an object doesn't exist, getObject returns an object with the requisite properties, but it's not an Error object. This makes debugging more difficult (since there's no stack property), breaks Nodejs conventions (callers typically expect the first argument to a callback to be an Error object), and deviates from the official AWS SDK (which returns Error objects).
When an object doesn't exist,
getObject
returns an object with the requisite properties, but it's not an Error object. This makes debugging more difficult (since there's nostack
property), breaks Nodejs conventions (callers typically expect the first argument to a callback to be an Error object), and deviates from the official AWS SDK (which returns Error objects).mock-aws-s3/lib/mock.js
Lines 331 to 340 in 6b5aa02
Every other method seems to correctly return Error objects. So this appears to be an outlier.
The text was updated successfully, but these errors were encountered: