Skip to content

Commit

Permalink
indent errors (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
miraclx authored Oct 20, 2022
1 parent ba1913d commit eea2140
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cargo-near/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ fn main() {
match cargo_near::exec(args.cmd) {
Ok(()) => {}
Err(err) => {
eprintln!(" {} {:?}", "✗".bright_red().bold(), err);
let err = format!("{:?}", err);
let mut err_lines = err.lines();
eprintln!(" {} {}", "✗".bright_red().bold(), err_lines.next().unwrap());
for line in err_lines {
eprintln!(" {}", line);
}
std::process::exit(1);
}
}
Expand Down

0 comments on commit eea2140

Please sign in to comment.