Skip to content
This repository has been archived by the owner on Dec 10, 2019. It is now read-only.

How to report errors back to user in microservice #2

Open
gordonwatts opened this issue Dec 9, 2019 · 2 comments
Open

How to report errors back to user in microservice #2

gordonwatts opened this issue Dec 9, 2019 · 2 comments
Labels
enhancement New feature or request

Comments

@gordonwatts
Copy link
Owner

When an error occurs (like a compile error) it needs to be reported back through the API. Talk with Ben about how to best do this.

@gordonwatts gordonwatts added the enhancement New feature or request label Dec 9, 2019
@gordonwatts
Copy link
Owner Author

Return a 400.

@gordonwatts
Copy link
Owner Author

Do this to return an error:

        except Exception as eek:
            print(eek)
            return {'message': 'Something went wrong'}, 500

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant