better errors
This commit is contained in:
parent
a2e54b1f0e
commit
83cd654030
3 changed files with 20 additions and 9 deletions
12
errors.go
Normal file
12
errors.go
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
package filter
|
||||
|
||||
import "errors"
|
||||
|
||||
var (
|
||||
errEmpty = newErr("empty query")
|
||||
nilErr = errors.New("nil")
|
||||
)
|
||||
|
||||
func newErr(s string) error {
|
||||
return errors.New("filter: " + s)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue