refactor(cli): unify display of errors from Rust and JS (#5183)

This commit is contained in:
Bartek Iwańczuk 2020-05-09 21:09:46 +02:00 committed by GitHub
parent 670d01d012
commit 1fddcc3721
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 25 additions and 23 deletions

View file

@ -150,11 +150,7 @@ impl fmt::Display for JSError {
"{}",
&format_stack(
true,
format!(
"{}: {}",
colors::red_bold("error".to_string()),
self.0.message.clone()
),
self.0.message.clone(),
self.0.source_line.clone(),
self.0.start_column,
self.0.end_column,