(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
|
|
@ -57,7 +57,7 @@ func (sn snapshot) Run(context wisski_distillery.Context) error {
|
|||
// find the instance!
|
||||
instance, err := dis.Instances().WissKI(context.Context, sn.Positionals.Slug)
|
||||
if err != nil {
|
||||
return errSnapshotWissKI.Wrap(err)
|
||||
return errSnapshotWissKI.WrapError(err)
|
||||
}
|
||||
|
||||
// do a snapshot of it!
|
||||
|
|
@ -72,7 +72,7 @@ func (sn snapshot) Run(context wisski_distillery.Context) error {
|
|||
})
|
||||
|
||||
if err != nil {
|
||||
return errSnapshotFailed.Wrap(err)
|
||||
return errSnapshotFailed.WrapError(err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue