jiangbo91@huawei.com

Fix duplicate error in symbol printing log in file

Signed-off-by: bojiang <jiangbo91@huawei.com>
Change-Id: I2ec625038b6775a8f05ac7c56543a270fc53b928
This commit is contained in:
bojiang
2022-08-23 18:04:04 +08:00
committed by Bo Jiang
parent 9c38ae8f33
commit b4fa17360c
+1 -1
View File
@@ -349,7 +349,7 @@ export class ResultStates {
.replace(/\(Emitted value instead of an instance of Error\) BUILD/, '')
.replace(/^ERROR/, 'ETS:ERROR');
this.printErrorMessage(errorMessage, true, errors[index]);
} else {
} else if (!/TS[0-9]+:/.test(errors[index].message.toString())) {
let errorMessage: string = `${errors[index].message.replace(/\[tsl\]\s*/, '')
.replace(/\u001b\[.*?m/g, '').replace(/\.ets\.ts/g, '.ets').trim()}\n`;
errorMessage = this.filterModuleError(errorMessage)