From 80af77a52865ce175c194d02c8cb3a5752652faa Mon Sep 17 00:00:00 2001 From: Jules Villard Date: Thu, 12 Nov 2015 03:59:27 -0800 Subject: [PATCH] revert back to printing python lists Summary: public but keep the copy-pastability by wrapping the list into a small standalone script that can be copy-pasted on the command line. Reviewed By: jeremydubreil Differential Revision: D2636536 fb-gh-sync-id: 7c689e2 --- infer/lib/python/inferlib/jwlib.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/infer/lib/python/inferlib/jwlib.py b/infer/lib/python/inferlib/jwlib.py index 9c22a09a1..5be559670 100644 --- a/infer/lib/python/inferlib/jwlib.py +++ b/infer/lib/python/inferlib/jwlib.py @@ -86,9 +86,17 @@ class CompilerCall: try: subprocess.check_call(javac_cmd, stderr=file_out) except subprocess.CalledProcessError: - error_msg = 'ERROR: Failed to run the following compilation command:\n\n {}\n' - failing_cmd = ' '.join(['"%s"' % arg for arg in javac_cmd - if arg != '-verbose']) + error_msg = 'ERROR: failure during compilation command.' \ + + '\nYou can run the failing compilation ' \ + + 'command again by copy-pasting the\nlines ' \ + + 'below in your terminal:\n\n"""\n' \ + + 'python <