1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-20 05:39:42 +02:00

Fix missing return on error

This commit is contained in:
sauls8t 2018-09-20 17:23:26 +01:00
parent fe7389e7ca
commit 153e38a5d4
3 changed files with 7 additions and 5 deletions

View file

@ -93,6 +93,7 @@ func (h *Handler) Get(w http.ResponseWriter, r *http.Request) {
if err != nil {
ctx.Transaction.Rollback()
h.Runtime.Log.Error(method, err)
return
}
ctx.Transaction.Commit()