Skip to content

Commit

Permalink
add missing field error
Browse files Browse the repository at this point in the history
  • Loading branch information
crlssn committed Jan 10, 2025
1 parent 9a4fe31 commit 467b013
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/rpc/handlers/v1/exercise.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (h *exerciseHandler) GetExercise(ctx context.Context, req *connect.Request[
exercise, err := h.repo.GetExercise(ctx, repo.GetExerciseWithID(req.Msg.GetId()))
if err != nil {
if errors.Is(err, sql.ErrNoRows) {
log.Warn("exercise not found")
log.Warn("exercise not found", zap.Error(err))
return nil, connect.NewError(connect.CodeNotFound, nil)
}

Expand Down

0 comments on commit 467b013

Please sign in to comment.