Skip to content

Commit

Permalink
fix(rename): Reset error is not found on purpose
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed Apr 2, 2022
1 parent 2793863 commit 50e51b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/crud/rename.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ func (a App) checkFile(ctx context.Context, pathname string, shouldExist bool) (
err = model.WrapInternal(err)
} else if shouldExist {
err = model.WrapNotFound(fmt.Errorf("`%s` not found", pathname))
} else {
err = nil
}
}

Expand Down

0 comments on commit 50e51b1

Please sign in to comment.