From 4ec5f6e25850b3064b258739eabefdeb8a4bd1b5 Mon Sep 17 00:00:00 2001 From: Emil Lauridsen Date: Wed, 29 Jan 2020 13:51:20 +0100 Subject: Change error output to make a bit more sense --- crates/ra_cargo_watch/src/lib.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'crates/ra_cargo_watch') diff --git a/crates/ra_cargo_watch/src/lib.rs b/crates/ra_cargo_watch/src/lib.rs index e015692fa..ea7ddc86b 100644 --- a/crates/ra_cargo_watch/src/lib.rs +++ b/crates/ra_cargo_watch/src/lib.rs @@ -363,7 +363,7 @@ impl WatchThread { let line = match line { Ok(line) => line, Err(err) => { - log::error!("Couldn't read line from cargo: {:?}", err); + log::error!("Couldn't read line from cargo: {}", err); continue; } }; @@ -372,7 +372,11 @@ impl WatchThread { let message = match message { Ok(message) => message, Err(err) => { - log::error!("Invalid json from cargo check, ignoring ({}): {} ", err, line); + log::error!( + "Invalid json from cargo check, ignoring ({}): {:?} ", + err, + line + ); continue; } }; -- cgit v1.2.3