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