mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-16 08:49:13 +00:00
Improve error messages with additional colons (#1319)
This commit is contained in:
parent
79af31b672
commit
f16c1afed0
11 changed files with 144 additions and 144 deletions
|
@ -429,7 +429,7 @@ impl fmt::Display for Location {
|
|||
write!(
|
||||
f,
|
||||
// TODO: use standard compiler location syntax (<path>:<line>:<col>)
|
||||
" at Line: {}, Column {}",
|
||||
" at Line: {}, Column: {}",
|
||||
self.line, self.column,
|
||||
)
|
||||
}
|
||||
|
@ -1816,7 +1816,7 @@ mod tests {
|
|||
use std::error::Error;
|
||||
assert!(err.source().is_none());
|
||||
}
|
||||
assert_eq!(err.to_string(), "test at Line: 1, Column 1");
|
||||
assert_eq!(err.to_string(), "test at Line: 1, Column: 1");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue