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:
parent
fe7389e7ca
commit
153e38a5d4
3 changed files with 7 additions and 5 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue