Slightly better error matching when parsing spack logs (#5236)

This commit is contained in:
Andrey Prokopenko 2017-08-30 03:56:17 -04:00 committed by Todd Gamblin
parent 462de9847c
commit c830eda0e6

View File

@ -86,7 +86,7 @@ def parse_log_events(logfile, context=6):
log_events = []
for i, line in enumerate(lines):
if re.search('error:', line, re.IGNORECASE):
if re.search('\berror:', line, re.IGNORECASE):
event = LogEvent(
line.strip(),
i + 1,