Skip to content

Commit

Permalink
Debug: For win32 builds, display fatal exception before waiting for i…
Browse files Browse the repository at this point in the history
…nput after a crash
  • Loading branch information
codewarrior0 committed Mar 6, 2013
1 parent 6442de8 commit c5e5ceb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mcedit.py
Expand Up @@ -1048,10 +1048,11 @@ def _reportingChanged(val):

try:
MCEdit.main()
except Exception:
except Exception as e:
logging.error("MCEdit version %s", release.get_version())
display.quit()
if hasattr(sys, 'frozen') and sys.platform == 'win32':
logging.exception("%s", e)
print "Press RETURN or close this window to dismiss."
raw_input()

Expand Down

0 comments on commit c5e5ceb

Please sign in to comment.