Improvement to JSON error output

pull/226/head
David Pokora 6 years ago
parent cf71a72bc4
commit c0220a26ef
No known key found for this signature in database
GPG Key ID: 3CED48D1BB21BDD7
  1. 2
      slither/__main__.py

@ -594,7 +594,7 @@ def main_impl(all_detector_classes, all_printer_classes):
except SlitherException as se:
# Output our error accordingly, via JSON or logging.
if stdout_json:
print(json.dumps(wrap_json_stdout(False, repr(se), [])))
print(json.dumps(wrap_json_stdout(False, str(se), [])))
else:
logging.error(red('Error:'))
logging.error(red(se))

Loading…
Cancel
Save