mirror of
https://github.com/denoland/deno.git
synced 2025-07-24 05:35:33 +00:00
refactor(cli): unify display of errors from Rust and JS (#5183)
This commit is contained in:
parent
670d01d012
commit
1fddcc3721
10 changed files with 25 additions and 23 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue