Log bad linkifier instead of throwing

This commit is contained in:
Daniel Imms
2019-07-13 09:48:16 -07:00
parent cd01d8ad56
commit f314543135
+1 -5
View File
@@ -212,11 +212,7 @@ export class Linkifier implements ILinkifier {
if (!uri) {
// something matched but does not comply with the given matchIndex
// since this is most likely a bug the regex itself we simply do nothing here
// DEBUG: print match and throw
if ((<any>this._terminal).debug) {
this._logService.error({ match, matcher });
throw new Error('match found without corresponding matchIndex');
}
this._logService.debug('match found without corresponding matchIndex', match, matcher);
break;
}