errors.go 450 B

123456789101112131415161718192021
  1. package main
  2. import "github.com/leonelquinteros/gotext"
  3. type UnableToFindPkgDestError struct {
  4. name, pkgDest string
  5. }
  6. func (e *UnableToFindPkgDestError) Error() string {
  7. return gotext.Get(
  8. "the PKGDEST for %s is listed by makepkg but does not exist: %s",
  9. e.name, e.pkgDest)
  10. }
  11. type PkgDestNotInListError struct {
  12. name string
  13. }
  14. func (e *PkgDestNotInListError) Error() string {
  15. return gotext.Get("could not find PKGDEST for: %s", e.name)
  16. }