|
|
|
@ -213,10 +213,17 @@ class CompilerCall(object):
|
|
|
|
|
try:
|
|
|
|
|
subprocess.check_call(command, stderr=file_out)
|
|
|
|
|
except subprocess.CalledProcessError:
|
|
|
|
|
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' \
|
|
|
|
|
try:
|
|
|
|
|
fallback_command = ['javac'] + cli_args + \
|
|
|
|
|
['@' + str(self.command_line_file)]
|
|
|
|
|
subprocess.check_call(
|
|
|
|
|
fallback_command, stderr=file_out)
|
|
|
|
|
except subprocess.CalledProcessError:
|
|
|
|
|
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 <<EOF\n' \
|
|
|
|
|
+ 'import subprocess\n' \
|
|
|
|
|
+ 'cmd = {}\n' \
|
|
|
|
|