Skip to content

Commit dd107d0

Browse files
committed
Print error to stdout
1 parent 81e3138 commit dd107d0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/napi/src/next_api/project.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -471,9 +471,9 @@ pub fn project_new(
471471
benchmark_file_io(tt, container.project().node_root().owned().await?).await
472472
};
473473
if let Err(err) = future.await {
474-
// TODO this tracing warn will go into the void. Should we change this to
475-
// stdout?
476-
tracing::warn!(%err, "failed to benchmark file IO");
474+
// TODO Not ideal to print directly to stdout.
475+
// We should use a compilation event instead to report async errors.
476+
println!("Failed to benchmark file IO: {err}");
477477
}
478478
})
479479
});

0 commit comments

Comments
 (0)