mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-22 06:10:22 +00:00
util: create a NewErrSnapNameConflict function
The NewErrSnapNameConflict will allow packages outside of "util" to create new instances of the ErrSnapNameConflict error. Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
parent
3b608f130a
commit
22d1476bba
@ -57,6 +57,10 @@ func (e ErrSnapNameConflict) Error() string {
|
|||||||
return e.err.Error()
|
return e.err.Error()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func NewErrSnapNameConflict(name string, err error) ErrSnapNameConflict {
|
||||||
|
return ErrSnapNameConflict{name, err}
|
||||||
|
}
|
||||||
|
|
||||||
// ErrPoolNotFound is returned when pool is not found
|
// ErrPoolNotFound is returned when pool is not found
|
||||||
type ErrPoolNotFound struct {
|
type ErrPoolNotFound struct {
|
||||||
Pool string
|
Pool string
|
||||||
|
Loading…
Reference in New Issue
Block a user