mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-22 06:54:07 +00:00
Improve tokenizer error (#347)
* Improve tokenizer error Signed-off-by: koushiro <koushiro.cqx@gmail.com> * Add test for TokenizerError Signed-off-by: koushiro <koushiro.cqx@gmail.com>
This commit is contained in:
parent
10ec257e21
commit
3d6637c4f3
2 changed files with 38 additions and 14 deletions
|
@ -68,10 +68,7 @@ use IsLateral::*;
|
|||
|
||||
impl From<TokenizerError> for ParserError {
|
||||
fn from(e: TokenizerError) -> Self {
|
||||
ParserError::TokenizerError(format!(
|
||||
"{} at Line: {}, Column {}",
|
||||
e.message, e.line, e.col
|
||||
))
|
||||
ParserError::TokenizerError(e.to_string())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue