Skip to content

Commit fec6ff6

Browse files
committed
Forward stderr from the embedded compiler
1 parent 43d60fb commit fec6ff6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/src/compile.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ async function compileRequestAsync(
153153
): Promise<CompileResult> {
154154
const functions = new FunctionRegistry(options?.functions);
155155
const embeddedCompiler = new AsyncEmbeddedCompiler();
156+
embeddedCompiler.stderr$.subscribe(data => process.stderr.write(data));
156157

157158
try {
158159
const dispatcher = createDispatcher<'async'>(
@@ -198,6 +199,7 @@ function compileRequestSync(
198199
): CompileResult {
199200
const functions = new FunctionRegistry(options?.functions);
200201
const embeddedCompiler = new SyncEmbeddedCompiler();
202+
embeddedCompiler.stderr$.subscribe(data => process.stderr.write(data));
201203

202204
try {
203205
const dispatcher = createDispatcher<'sync'>(

0 commit comments

Comments
 (0)