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

Unhandled error when opening payload #6

Open
billglover opened this issue Dec 7, 2021 · 0 comments
Open

Unhandled error when opening payload #6

billglover opened this issue Dec 7, 2021 · 0 comments

Comments

@billglover
Copy link
Contributor

This line checks for an error when opening the payload but then does nothing if the error is present.

if err != nil {}

As there is not much that the program can do to recover if it is unable to open the payload there are three options:

  • terminate the program with a suitable error message
  • respond to the request indicating an error has occurred
  • both the above
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

No branches or pull requests

1 participant