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
parent 4d3106b58b
commit 4c17cbe7d3
+1 -1
View File
@@ -385,7 +385,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)