Fix error reporting in the diff kitten
This commit is contained in:
parent
fb57653665
commit
67c0942e01
2 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -225,7 +225,7 @@ def __call__(self, context=3):
|
|||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue