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

Implement better crash behavior #53

Open
pmiddend opened this issue Jul 21, 2012 · 0 comments
Open

Implement better crash behavior #53

pmiddend opened this issue Jul 21, 2012 · 0 comments

Comments

@pmiddend
Copy link
Collaborator

  • In Linux, we can test with "isatty" if we're attached to a terminal. In this case, the current error reporting suffices (we could, however, redirect the debug log to a file, maybe)
  • In Linux without a terminal and under Windows, we need to...
    • redirect stdout, stderr, stdlog and the wide variants to files. For that, a "file_redirection" class could be invented which you instantiate at the beginning of main
    • display a message box containing the error in main's catch block. In Windows, this is easy, we can just use MessageBox. In Linux, we can use awl and xlib to create a window with the error string.
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