Fix #24050 - lost this error msg when I switched from an error blacklist to a whitelist

This commit is contained in:
Rob Lourens 2017-04-28 10:54:53 -07:00
parent 79b1ec851a
commit f22230f407

View file

@ -152,7 +152,15 @@ export class RipgrepEngine {
return this.config.searchPaths && this.config.searchPaths.indexOf(errorPath) >= 0 ? firstLine : undefined;
}
return strings.startsWith(firstLine, 'Error parsing regex') ? firstLine : undefined;
if (strings.startsWith(firstLine, 'Error parsing regex')) {
return firstLine;
}
if (strings.startsWith(firstLine, 'error parsing glob')) {
return firstLine;
}
return undefined;
}
}