(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
|
|
@ -73,7 +73,7 @@ func (mb makeBlock) Run(context wisski_distillery.Context) error {
|
|||
// get the wisski
|
||||
instance, err := context.Environment.Instances().WissKI(context.Context, mb.Positionals.Slug)
|
||||
if err != nil {
|
||||
return errPathbuilderWissKI.Wrap(err)
|
||||
return errPathbuilderWissKI.WrapError(err)
|
||||
}
|
||||
|
||||
// get the footer (if any)
|
||||
|
|
@ -81,7 +81,7 @@ func (mb makeBlock) Run(context wisski_distillery.Context) error {
|
|||
zerolog.Ctx(context.Context).Info().Msg("checking for footer")
|
||||
region, err := instance.Blocks().GetFooterRegion(context.Context, nil)
|
||||
if err != nil {
|
||||
return errBlocksFooterFailed.Wrap(err)
|
||||
return errBlocksFooterFailed.WrapError(err)
|
||||
}
|
||||
if region == "" {
|
||||
return errBlocksNoFooter
|
||||
|
|
@ -96,7 +96,7 @@ func (mb makeBlock) Run(context wisski_distillery.Context) error {
|
|||
// read the content
|
||||
content, err := io.ReadAll(context.Stdin)
|
||||
if err != nil {
|
||||
return errBlocksNoContent.Wrap(err)
|
||||
return errBlocksNoContent.WrapError(err)
|
||||
}
|
||||
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue