diesel icon indicating copy to clipboard operation
diesel copied to clipboard

More verbose errors on diesel migrations?

Open lucasholder opened this issue 4 years ago • 3 comments

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.

lucasholder avatar Apr 24 '20 16:04 lucasholder

It would be nice to have better error messages for migrations, but this is not something where I'm personally interested to invest much time. So don't expect much development from my side here. If someone has a nice idea here please open a PR.

weiznich avatar Apr 24 '20 20:04 weiznich

Hey, @weiznich is this something you are still looking at?

1nF0rmed avatar Oct 14 '21 13:10 1nF0rmed

@1nF0rmed Yes that's something we would be interested in getting it fixed. If your are interested https://github.com/diesel-rs/diesel/discussions/2907 contains more details about a potential fix.

weiznich avatar Oct 14 '21 13:10 weiznich