errors.go 446 B

123456789101112131415161718192021
  1. package query
  2. import (
  3. "github.com/leonelquinteros/gotext"
  4. )
  5. // ErrAURSearch means that it was not possible to connect to the AUR.
  6. type ErrAURSearch struct {
  7. inner error
  8. }
  9. func (e ErrAURSearch) Error() string {
  10. return gotext.Get("Error during AUR search: %s\n", e.inner.Error())
  11. }
  12. // ErrNoQuery means that query was not executed.
  13. type ErrNoQuery struct{}
  14. func (e ErrNoQuery) Error() string {
  15. return gotext.Get("no query was executed")
  16. }