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

Improve output in case of error #103

Open
fabrice102 opened this issue Feb 17, 2022 · 0 comments
Open

Improve output in case of error #103

fabrice102 opened this issue Feb 17, 2022 · 0 comments
Labels
new-feature-request Feature request that needs triage Team Lamprey

Comments

@fabrice102
Copy link
Contributor

Problem

Sometimes the sandbox fails but does not clearly indicates it so.
If the user is unfamiliar with sandbox, they may not realize that it did not start properly.

See for example:

Solution

Have something that catches errors systematically and display a clear error message at the end:

ERROR: Something went wrong. Please look at sandbox.log and read https://github.com/algorand/sandbox#errors

(in case -v is not provided)

ERROR: Something went wrong. Please look at the error above and read https://github.com/algorand/sandbox#errors

(in case -v is provided)

where https://github.com/algorand/sandbox#errors is extended to give usual ways of fixing errors, including:

  • check you are on the latest version (git ...)
  • check that nothing is listening on ...
  • reset the sandbox (warning clear up everything)
  • reset Docker

See https://medium.com/@dirk.avery/the-bash-trap-trap-ce6083f36700 on how to trap errors.

Dependencies

Urgency

@fabrice102 fabrice102 added the new-feature-request Feature request that needs triage label Feb 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-feature-request Feature request that needs triage Team Lamprey
Projects
None yet
Development

No branches or pull requests

2 participants