Fix error reporting in the diff kitten

This commit is contained in:
Kovid Goyal
2018-05-19 22:51:02 +05:30
parent fb57653665
commit 67c0942e01
2 changed files with 2 additions and 1 deletions

View File

@@ -406,6 +406,7 @@ def main(args):
if loop.return_code != 0:
if handler.report_traceback_on_exit:
print(handler.report_traceback_on_exit, file=sys.stderr)
input('Press Enter to quit.')
raise SystemExit(loop.return_code)

View File

@@ -225,7 +225,7 @@ class Differ:
patch = parse_patch(output)
except Exception:
import traceback
return traceback.format_exc() + '\nParsing diff for {} vs. {} failed'.format(key[0], key[1])
return traceback.format_exc() + '\nParsing diff for {} vs. {} failed'.format(left_path, right_path)
else:
ans[key] = patch
return ans