diesel-rs/diesel

More verbose errors on diesel migrations?

Open

#2378 opened on Apr 24, 2020

View on GitHub
 (3 comments) (13 reactions) (0 assignees)Rust (12,054 stars) (1,003 forks)batch import
clienhancementhelp wanted

Description

Right now the error messages aren't very verbose with PostgreSQL when a migration fails, e.g.:

Failed with: syntax error at or near "."

It would be helpful to also display line/column position of the error in the file.

Contributor guide