Skip to content

Commit

Permalink
Include A traceback when an exception happens and we don't handle it
Browse files Browse the repository at this point in the history
  • Loading branch information
stoivo committed May 25, 2018
1 parent 20beee4 commit 4e6fa89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/git_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import shutil
import re
import threading
import traceback

import sublime

Expand Down Expand Up @@ -224,7 +225,7 @@ def initialize_panel():

except Exception as e:
# this should never be reached
raise GitSavvyError("Please report this error to GitSavvy:\n\n{}".format(e))
raise GitSavvyError("Please report this error to GitSavvy:\n\n{}\n\n{}".format(e, traceback.format_exc()))

finally:
end = time.time()
Expand Down

0 comments on commit 4e6fa89

Please sign in to comment.