errors.go 499 B

12345678910111213141516171819202122
  1. package storage
  2. import (
  3. "errors"
  4. "fmt"
  5. )
  6. var (
  7. // ErrPathOutsideStore indicates that the returned path would be
  8. // outside the store
  9. ErrPathOutsideStore = errors.New("path outside file store")
  10. )
  11. // ErrMetaNotFound indicates we did not find a particular piece
  12. // of metadata in the store
  13. type ErrMetaNotFound struct {
  14. Resource string
  15. }
  16. func (err ErrMetaNotFound) Error() string {
  17. return fmt.Sprintf("%s trust data unavailable. Has a notary repository been initialized?", err.Resource)
  18. }