summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-12-10 17:50:41 -0500
committerGitHub <noreply@github.com>2018-12-10 17:50:41 -0500
commit9a960b9f5804f5e855163e7ec43327c28daef845 (patch)
treef67a70c4c35999ff89601968e57783644063a062 /src/main.rs
parent1548792fb3530efb63432c0c704a3f0053410eb3 (diff)
Use stderr for exceptions (#1303)
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs
index cdb7d8dd0..bcc18511c 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -72,9 +72,7 @@ impl log::Log for Logger {
}
fn print_err_and_exit(err: js_errors::JSError) {
- // TODO Currently tests depend on exception going to stdout. It should go
- // to stderr. https://github.com/denoland/deno/issues/964
- println!("{}", err.to_string());
+ eprintln!("{}", err.to_string());
std::process::exit(1);
}