Skip to content

Commit f1e4687

Browse files
committed
Return the first scanning error message
1 parent 03f4297 commit f1e4687

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fosslight_source/_parsing_scancode_file_item.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def get_error_from_header(header_item):
107107
errors = header[key_error]
108108
if len(errors) > 0:
109109
has_error = True
110-
str_error = ",".join(errors)
110+
str_error = str(errors[0])
111111
break
112112
except Exception as ex:
113113
logger.debug("error_parsing_header:"+str(ex))

0 commit comments

Comments
 (0)