Skip to content

Commit a31a107

Browse files
Merge pull request #425 from swiftwasm/yt/emit-ts-errors-stderr
2 parents cb3ea6c + 5b3c55e commit a31a107

File tree

1 file changed

+2
-2
lines changed
  • Plugins/BridgeJS/Sources/TS2Skeleton/JavaScript/src

1 file changed

+2
-2
lines changed

Plugins/BridgeJS/Sources/TS2Skeleton/JavaScript/src/cli.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ class DiagnosticEngine {
2222
getCurrentDirectory: () => ts.sys.getCurrentDirectory(),
2323
};
2424
}
25-
25+
2626
/**
2727
* @param {readonly ts.Diagnostic[]} diagnostics
2828
*/
2929
tsDiagnose(diagnostics) {
3030
const message = ts.formatDiagnosticsWithColorAndContext(diagnostics, this.formattHost);
31-
console.log(message);
31+
process.stderr.write(message, "utf-8");
3232
}
3333

3434
static LEVELS = {

0 commit comments

Comments
 (0)