(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:
Tom Wiesing 2024-04-08 21:32:06 +02:00
parent 7763644ebe
commit d268728f7d
No known key found for this signature in database
20 changed files with 49 additions and 49 deletions

View file

@ -42,7 +42,7 @@ var errInstancePauseWissKI = exit.Error{
func (i instancepause) Run(context wisski_distillery.Context) error {
instance, err := context.Environment.Instances().WissKI(context.Context, i.Positionals.Slug)
if err != nil {
return errInstancePauseWissKI.Wrap(err)
return errInstancePauseWissKI.WrapError(err)
}
if i.Stop {