!1004 Fix duplicate error in symbol printing log in file

Merge pull request !1004 from Bo Jiang/cherry-pick-1661249410
This commit is contained in:
openharmony_ci
2022-08-23 11:31:36 +00:00
committed by Gitee
+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)