Skip to content

Commit

Permalink
Fix: make error message more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
tobymao committed May 29, 2023
1 parent e7abaef commit 264e9d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqlglot/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ def parse_into(
e.errors[0]["into_expression"] = expression_type
errors.append(e)
raise ParseError(
f"Failed to parse into {expression_types}",
f"Failed to parse '{sql or raw_tokens}' into {expression_types}",
errors=merge_errors(errors),
) from errors[-1]

Expand Down

0 comments on commit 264e9d7

Please sign in to comment.