mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
add titles to errors
This commit is contained in:
parent
c2ad8dfe7e
commit
fcb62cdf8e
3 changed files with 159 additions and 78 deletions
|
@ -122,9 +122,7 @@ fn gen(filename: PathBuf, src: &str, target: Triple, dest_filename: &Path) {
|
|||
let report = can_problem(filename.clone(), problem);
|
||||
let mut buf = String::new();
|
||||
|
||||
report
|
||||
.text
|
||||
.render_color_terminal(&mut buf, &mut subs, home, &src_lines, &interns, &palette);
|
||||
report.render_color_terminal(&mut buf, &mut subs, home, &src_lines, &interns, &palette);
|
||||
|
||||
println!("\n{}\n", buf);
|
||||
}
|
||||
|
@ -133,9 +131,7 @@ fn gen(filename: PathBuf, src: &str, target: Triple, dest_filename: &Path) {
|
|||
let report = type_problem(filename.clone(), problem);
|
||||
let mut buf = String::new();
|
||||
|
||||
report
|
||||
.text
|
||||
.render_color_terminal(&mut buf, &mut subs, home, &src_lines, &interns, &palette);
|
||||
report.render_color_terminal(&mut buf, &mut subs, home, &src_lines, &interns, &palette);
|
||||
|
||||
println!("\n{}\n", buf);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue