We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35cc5e4 commit 9ea1cdfCopy full SHA for 9ea1cdf
src/fosslight_source/_parsing_scancode_file_item.py
@@ -105,9 +105,10 @@ def get_error_from_header(header_item):
105
for header in header_item:
106
if key_error in header:
107
errors = header[key_error]
108
- if len(errors) > 0:
+ error_cnt = len(errors)
109
+ if error_cnt > 0:
110
has_error = True
- str_error = str(errors[0])
111
+ str_error ='{}...({})'.format(errors[0], error_cnt)
112
break
113
except Exception as ex:
114
logger.debug("error_parsing_header:"+str(ex))
0 commit comments