We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df5984e commit 9a22e4eCopy full SHA for 9a22e4e
src/error.rs
@@ -70,9 +70,10 @@ impl fmt::Display for Error {
70
let line_no = pos.line_no.to_string();
71
write!(
72
out,
73
- "{0:lnw$} ,\
+ "{msg}\
74
+ \n{0:lnw$} ,\
75
\n{ln} | {line}\
- \n{0:lnw$} |{0:>lpos$}^ {msg}\
76
+ \n{0:lnw$} |{0:>lpos$}^\
77
\n{0:lnw$} '",
78
"",
79
line = pos.line,
@@ -90,7 +91,7 @@ impl fmt::Display for Error {
90
91
lnw = line_no.len(),
92
file = pos.file.name(),
93
row = pos.line_no,
- col = pos.line_pos - 1,
94
+ col = pos.line_pos,
95
cause = if pos.file.imported_from().is_some() {
96
"import"
97
} else {
0 commit comments