added / documented common errors

This commit is contained in:
fibonacci1729
2016-08-03 15:39:22 -06:00
parent 967e438bfd
commit fad498e8fd

View File

@@ -22,9 +22,11 @@ import (
var (
// ErrReleaseNotFound indicates that a release is not found.
ErrReleaseNotFound = errors.New("release not found")
// Temporary error while WIP.
ErrNotImplemented = errors.New("not implemented")
ErrReleaseNotFound = errors.New("release: not found")
// ErrReleaseExists indicates that a release already exists.
ErrReleaseExists = errors.New("release: already exists")
// ErrDriverAction indicates the storage driver failed to execute the requested action.
ErrDriverAction = errors.New("driver: failed to perform action")
)
// Creator stores a release.
@@ -60,4 +62,4 @@ type Driver interface {
Updator
Deletor
Queryor
}
}