Skip to content

It would be nice to have file name and line numbers on parse errors #136

@ghuh

Description

@ghuh

I got the following error

Error: diesel_guard::parse_error (link)

  × Failed to parse SQL: Invalid statement: syntax error at or near "CREATE"
  help: Check that your SQL syntax is valid Postgres

I fortunately knew which file I had just changed so I could find the error, but, even then, the file had 6 CREATE statements so it took me a minute to track down the issue.

It would be really nice to list both file name and line number on parse error.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions