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

[BUG] When program crashes, pretty print error message #38

Open
5 tasks
gregbell26 opened this issue Oct 18, 2022 · 0 comments
Open
5 tasks

[BUG] When program crashes, pretty print error message #38

gregbell26 opened this issue Oct 18, 2022 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers Module: UI This issue relates to UI need analysis review is needed

Comments

@gregbell26
Copy link
Member

Description

Issue

When the program crashes, a large stack trace is generated, and when running from compiled source, this causes the program to completely exit so the error message cannot be seen.

Steps to recreate

Enter in an invalid input for an overridden max points value or assignment scaling (like a string).

Solution

Catch the error and cleanly report where it occurs then wait for the user to press any key to close the application.

Acceptance Criteria

  • All run-time errors that put the application into an unrecoverable state are caught
  • 'Nicer' error messages are printed to the user
  • Error messages include the module where the error occurred
  • Error messages include the type of run time error
  • Program waits for the user to acknowledge the error before exiting with a non-zero status code.
@gregbell26 gregbell26 added bug Something isn't working need analysis review is needed Module: UI This issue relates to UI labels Oct 18, 2022
@gregbell26 gregbell26 moved this to New Feature in Grading Script Oct 18, 2022
@gregbell26 gregbell26 moved this from New Feature to Bug in Grading Script Oct 18, 2022
@gregbell26 gregbell26 added the good first issue Good for newcomers label Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers Module: UI This issue relates to UI need analysis review is needed
Projects
None yet
Development

No branches or pull requests

1 participant