Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass error message to the error object #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sulthan-ahmed
Copy link
Contributor

When posting to the filevault API, it previously only returned the error code and not the detail about the error.

However, by adding this, I was able to work out and resolve my issue
e.g.

{"message":{"message":"Invalid keyId","code":"KMS.NotFoundException","region":null,"time":"2019-01-23T12:17:50.483Z","requestId":"7F964FE8...","extendedRequestId":"MCzf5bg...","statusCode":400,"retryable":false,"retryDelay":73.74217648572545},"code":"S3PUTFailed"}

otherwise it would just say

code":"S3PUTFailed"

Note: Docker-compose does not log in the console any detail about the errors in the app part

When posting to the filevault API, it previously only returned the error code and not the detail about the error.
code: 'VirusScanFailed'
};
err = error;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i appreciate this isn't the prettiest way of doing things, happy to change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant