Skip to content

Commit 4ec5f6e

Browse files
committed
Change error output to make a bit more sense
1 parent 8ffbe86 commit 4ec5f6e

File tree

1 file changed

+6
-2
lines changed
  • crates/ra_cargo_watch/src

1 file changed

+6
-2
lines changed

crates/ra_cargo_watch/src/lib.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ impl WatchThread {
363363
let line = match line {
364364
Ok(line) => line,
365365
Err(err) => {
366-
log::error!("Couldn't read line from cargo: {:?}", err);
366+
log::error!("Couldn't read line from cargo: {}", err);
367367
continue;
368368
}
369369
};
@@ -372,7 +372,11 @@ impl WatchThread {
372372
let message = match message {
373373
Ok(message) => message,
374374
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+
);
376380
continue;
377381
}
378382
};

0 commit comments

Comments
 (0)