(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
|
|
@ -38,12 +38,12 @@ var errPrefixesWissKI = exit.Error{
|
|||
func (p prefixes) Run(context wisski_distillery.Context) error {
|
||||
instance, err := context.Environment.Instances().WissKI(context.Context, p.Positionals.Slug)
|
||||
if err != nil {
|
||||
return errPrefixesWissKI.Wrap(err)
|
||||
return errPrefixesWissKI.WrapError(err)
|
||||
}
|
||||
|
||||
prefixes, err := instance.Prefixes().All(context.Context, nil)
|
||||
if err != nil {
|
||||
return errPrefixesGeneric.Wrap(err)
|
||||
return errPrefixesGeneric.WrapError(err)
|
||||
}
|
||||
|
||||
for _, p := range prefixes {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue