When an error occurs with the SDK outside of an HTTP request then the error's statusCode will be undefined, which will trigger a TypeError in common code outside the plugin, masking the true error (eg. missing AWS credentials)
This change sets a fallback 500 status code so that error handling will continue.
Type: Bug Scope: verdaccio-aws-s3-storage
The following has been addressed in the PR:
undefined
, which will trigger a TypeError in common code outside the plugin, masking the true error (eg. missing AWS credentials)This change sets a fallback 500 status code so that error handling will continue.
Resolves #695