mirror of
https://github.com/hohn/sarif-cli.git
synced 2025-12-16 17:23:03 +01:00
Fix load error csv output error
This commit is contained in:
@@ -45,7 +45,7 @@ def load(fname):
|
||||
except json.decoder.JSONDecodeError as err:
|
||||
logging.error('Error reading from {}: {}: line {}, column {}'
|
||||
.format(fname, err.msg, err.lineno, err.colno))
|
||||
status_writer.file_load_error["file"] = fname
|
||||
status_writer.file_load_error["sarif_file"] = fname
|
||||
status_writer.csv_write(status_writer.file_load_error)
|
||||
sys.exit(1)
|
||||
return content
|
||||
|
||||
Reference in New Issue
Block a user