Skip to content

Commit

Permalink
doc: document ErrRecordNotFound error more clear (go-gorm#2015)
Browse files Browse the repository at this point in the history
* doc: document ErrRecordNotFound error more clear

* fix goimports

* fix goimports

* undo change
  • Loading branch information
easonlin404 authored and jinzhu committed Aug 18, 2018
1 parent 5399529 commit 3245508
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 3245508

Please sign in to comment.