Skip to content

Commit

Permalink
fix: proper not found error
Browse files Browse the repository at this point in the history
  • Loading branch information
joel authored and joel committed Mar 6, 2024
1 parent f13081a commit b04b722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/models/factor.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func FindFactorByFactorID(conn *storage.Connection, factorID uuid.UUID) (*Factor
var factor Factor
err := conn.Find(&factor, factorID)
if err != nil && errors.Cause(err) == sql.ErrNoRows {
return nil, ChallengeNotFoundError{}
return nil, FactorNotFoundError{}
} else if err != nil {
return nil, err
}
Expand Down

0 comments on commit b04b722

Please sign in to comment.