Change error output to make a bit more sense

This commit is contained in:
Emil Lauridsen 2020-01-29 13:51:20 +01:00
parent 8ffbe86dfd
commit 4ec5f6e258

View file

@ -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;
}
};