(exit.Error).Wrap => (exit.Error).WrapError
This commit moves from the deprecated (exit.Error).Wrap function to the (exit.Error).WrapError instead.
This commit is contained in:
parent
7763644ebe
commit
d268728f7d
20 changed files with 49 additions and 49 deletions
|
|
@ -64,7 +64,7 @@ func (r reserve) Run(context wisski_distillery.Context) (err error) {
|
|||
logging.LogMessage(context.Stderr, "Checking that base directory %s does not exist", instance.FilesystemBase)
|
||||
exists, err := fsx.Exists(instance.FilesystemBase)
|
||||
if err != nil {
|
||||
return errProvisionGeneric.Wrap(err)
|
||||
return errProvisionGeneric.WrapError(err)
|
||||
}
|
||||
if exists {
|
||||
return errReserveAlreadyExists.WithMessageF(slug)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue