aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_cargo_watch/src
diff options
context:
space:
mode:
authorEmil Lauridsen <[email protected]>2020-01-29 12:51:20 +0000
committerEmil Lauridsen <[email protected]>2020-01-29 12:51:20 +0000
commit4ec5f6e25850b3064b258739eabefdeb8a4bd1b5 (patch)
tree13e9d476683fbb2de03e8c01f96e95dd176f1260 /crates/ra_cargo_watch/src
parent8ffbe86dfd24ffcc11ec37bceca9102260d59db2 (diff)
Change error output to make a bit more sense
Diffstat (limited to 'crates/ra_cargo_watch/src')
-rw-r--r--crates/ra_cargo_watch/src/lib.rs8
1 files changed, 6 insertions, 2 deletions
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 {
363 let line = match line { 363 let line = match line {
364 Ok(line) => line, 364 Ok(line) => line,
365 Err(err) => { 365 Err(err) => {
366 log::error!("Couldn't read line from cargo: {:?}", err); 366 log::error!("Couldn't read line from cargo: {}", err);
367 continue; 367 continue;
368 } 368 }
369 }; 369 };
@@ -372,7 +372,11 @@ impl WatchThread {
372 let message = match message { 372 let message = match message {
373 Ok(message) => message, 373 Ok(message) => message,
374 Err(err) => { 374 Err(err) => {
375 log::error!("Invalid json from cargo check, ignoring ({}): {} ", err, line); 375 log::error!(
376 "Invalid json from cargo check, ignoring ({}): {:?} ",
377 err,
378 line
379 );
376 continue; 380 continue;
377 } 381 }
378 }; 382 };