src-d / gitbase

SQL interface to git repositories, written in Go. https://docs.sourced.tech/gitbase
Apache License 2.0
2.07k stars 123 forks source link

gitbase: report repository id on errors #914

Closed erizocosmico closed 5 years ago

erizocosmico commented 5 years ago

Closes #909

I started implementing this in another way, just wrapping error by error with the error to just do it on git errors, but it was a ton of changes and very prone to not be done in the future.

This way, the iterator is wrapped and the errores are always added the info, no matter how much we change the iterators and the errors they return.

kuba-- commented 5 years ago

LGTM - what do you think about renaming to sth. like errorWithRepo(...)

erizocosmico commented 5 years ago

Done