Skip to content

Commit

Permalink
oops, wrap here
Browse files Browse the repository at this point in the history
  • Loading branch information
lestrrat committed Jul 10, 2016
1 parent 8b481e3 commit 7ba5635
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions octav/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -534,8 +534,8 @@ func doCreateSession(ctx context.Context, w http.ResponseWriter, r *http.Request
return
}

if err := s.Decorate(tx, &v); err != nil {
httpError(w, `CreateSession`, http.StatusInternalServerError, errors.Wrap(err))
if err := errors.Wrap(s.Decorate(tx, &v), "failed to decorate session with associated data"); err != nil {
httpError(w, `CreateSession`, http.StatusInternalServerError, err)
return
}

Expand Down

0 comments on commit 7ba5635

Please sign in to comment.