mirror of
https://github.com/rm-dr/daisy
synced 2025-07-01 06:33:34 -07:00
Improved error formatting
This commit is contained in:
@ -129,10 +129,11 @@ fn main() -> Result<(), std::io::Error> {
|
||||
},
|
||||
Err((l, e)) => {
|
||||
write!(
|
||||
stdout, "{}{}{} {e:?}{}\r\n",
|
||||
stdout, "{}{}{} {}{}\r\n",
|
||||
color::Fg(color::Red),
|
||||
" ".repeat(l.pos + 4),
|
||||
"^".repeat(l.len),
|
||||
e.to_message(),
|
||||
color::Fg(color::Reset),
|
||||
)?;
|
||||
}
|
||||
|
Reference in New Issue
Block a user