diff --git a/compiler/src/compile_info.ts b/compiler/src/compile_info.ts index 5533fc1..affb5f9 100644 --- a/compiler/src/compile_info.ts +++ b/compiler/src/compile_info.ts @@ -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)