Skip to content

Commit 3bea9cf

Browse files
authored
Merge pull request diffblue#289 from diffblue/marek/print_line_in_JSON_with_syntax_error
SEC-163: Printing a line in JSON with the syntax error.
2 parents d20f8cc + 9fe4e0f commit 3bea9cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

regression/LVSA/lvsa_driver.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ def __init__(self, lvsa_stdout, fq_class, fq_function):
8989
self.target_function = 'java::' + fq_function + ':'
9090
try:
9191
json_output = json.loads(lvsa_stdout)
92-
except json.decoder.JSONDecodeError:
93-
print('Error: LVSA output is not json\n\n')
92+
except json.decoder.JSONDecodeError as e:
93+
print('Error: LVSA output is not json\n' + str(e) + "\n\n")
9494
print (lvsa_stdout)
9595
return
9696
temp_all_functions = [x for x in json_output if x.get('messageType') == 'LVSA-ALL-FUNCTIONS-DUMP']

0 commit comments

Comments
 (0)