[Infer][capture] Fixing Python AttributeError in javac capture

Summary: @public JavacCapture does not have an args field, which crashes Python with an AttributeError if we hit self.args.debug. Replaced with the correct expression.

Test Plan: Cause AttributeError with small test case, error no longer happens after fix
master
Sam Blackshear 10 years ago
parent cc89c6f8ac
commit 712d27b544

@ -30,6 +30,6 @@ class JavacCapture:
self.analysis.start()
return os.EX_OK
except subprocess.CalledProcessError as exc:
if self.args.debug:
if self.analysis.args.debug:
traceback.print_exc()
return exc.returncode

Loading…
Cancel
Save