forked from mirror/gorm
doc: document ErrRecordNotFound error more clear (#2015)
* doc: document ErrRecordNotFound error more clear * fix goimports * fix goimports * undo change
This commit is contained in:
parent
53995294ef
commit
32455088f2
|
@ -6,7 +6,7 @@ import (
|
|||
)
|
||||
|
||||
var (
|
||||
// ErrRecordNotFound record not found error, happens when haven't find any matched data when looking up with a struct
|
||||
// ErrRecordNotFound record not found error, happens when only haven't find any matched data when looking up with a struct, finding a slice won't return this error
|
||||
ErrRecordNotFound = errors.New("record not found")
|
||||
// ErrInvalidSQL invalid SQL error, happens when you passed invalid SQL
|
||||
ErrInvalidSQL = errors.New("invalid SQL")
|
||||
|
|
Loading…
Reference in New Issue