From 82bfbf9d203c0e2590925c61845f71802c894b1a Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 29 Nov 2018 12:25:10 -0800 Subject: [PATCH 1/2] Add more context to a wasm-bindgen-test-runner error Minor cleanup I found during #1002 --- crates/cli/src/bin/wasm-bindgen-test-runner/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs index 522f6310d80..4f5c57dab22 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/main.rs @@ -155,7 +155,7 @@ fn rmain() -> Result<(), Error> { &tmpdir, &args.collect::>(), &tests, - )?; + ).context("failed to spawn server")?; let addr = srv.server_addr(); // TODO: eventually we should provide the ability to exit at some point From 430fce7a8bd3682b22b5fa436b85322d8ee488ff Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 29 Nov 2018 12:25:24 -0800 Subject: [PATCH 2/2] Enable env_logger for the `wasm-bindgen` CLI tool This was intended earlier, but fogotten! Found during work on #1002 --- crates/cli/src/bin/wasm-bindgen.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/cli/src/bin/wasm-bindgen.rs b/crates/cli/src/bin/wasm-bindgen.rs index d3ffdfedde4..2b0e240e4c2 100644 --- a/crates/cli/src/bin/wasm-bindgen.rs +++ b/crates/cli/src/bin/wasm-bindgen.rs @@ -5,6 +5,7 @@ extern crate docopt; extern crate wasm_bindgen_shared; #[macro_use] extern crate failure; +extern crate env_logger; use std::path::PathBuf; use std::process; @@ -59,6 +60,7 @@ struct Args { } fn main() { + env_logger::init(); let args: Args = Docopt::new(USAGE) .and_then(|d| d.deserialize()) .unwrap_or_else(|e| e.exit());