diff --git a/git/__init__.py b/git/__init__.py index f7ca4726..5458e114 100644 --- a/git/__init__.py +++ b/git/__init__.py @@ -153,6 +153,11 @@ def find_binary(cmd): GITK = find_binary('gitk') +def output_error_message(output, *args, **kwargs): + # print('error', output, args, kwargs) + sublime.error_message(output) + + class CommandThread(threading.Thread): command_lock = threading.Lock() @@ -217,7 +222,7 @@ def run(self): else: output = e.returncode except OSError as e: - callback = sublime.error_message + callback = output_error_message if e.errno == 2: global _has_warned if not _has_warned: