aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2019-07-29 09:06:35 -0500
committerGitHub <noreply@github.com>2019-07-29 09:06:35 -0500
commit5c6c3750727515fa4fc5bc3bc653293f5293f2c6 (patch)
treea043f6de866915df978bf7c166b7261b3c5d6335 /src
parent844a1a4651d6b77a5b48159348d9cccbd8f4c88f (diff)
parent3d08775266eb1979956b03add38e6bd4824f521a (diff)
downloadmilf-rs-5c6c3750727515fa4fc5bc3bc653293f5293f2c6.tar.gz
milf-rs-5c6c3750727515fa4fc5bc3bc653293f5293f2c6.zip
Merge pull request #313 from zertosh/show-col-in-errors
Show "column" in Error messages
Diffstat (limited to 'src')
-rw-r--r--src/de.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/de.rs b/src/de.rs
index 077c008..f65492d 100644
--- a/src/de.rs
+++ b/src/de.rs
@@ -1845,7 +1845,7 @@ impl fmt::Display for Error {
}
if let Some(line) = self.inner.line {
- write!(f, " at line {}", line + 1)?;
+ write!(f, " at line {} column {}", line + 1, self.inner.col + 1)?;
}
Ok(())