diff --git a/contracts.go b/contracts.go index 66962a5..ca0c8d7 100644 --- a/contracts.go +++ b/contracts.go @@ -2,11 +2,14 @@ package kissorm import ( "context" + "database/sql" "fmt" + + "github.com/pkg/errors" ) // ErrRecordNotFound ... -var ErrRecordNotFound error = fmt.Errorf("kissorm: the query returned no results") +var ErrRecordNotFound error = errors.Wrap(sql.ErrNoRows, "kissorm: the query returned no results") // ErrAbortIteration ... var ErrAbortIteration error = fmt.Errorf("kissorm: abort iteration, should only be used inside QueryChunks function")