client/web, clientupdate, util/linuxfw, wgengine/magicsock: Use %v verb for errors

Replace %w verb with %v verb when logging errors.
Use %w only for wrapping errors with fmt.Errorf()

Fixes: #9213

Signed-off-by: Craig Rodrigues <rodrigc@crodrigues.org>
This commit is contained in:
Craig Rodrigues
2023-09-02 11:09:38 -07:00
committed by Brad Fitzpatrick
parent d06a75dcd0
commit 8683ce78c2
4 changed files with 6 additions and 5 deletions

View File

@ -863,7 +863,7 @@ func (up *Updater) updateLinuxBinary() error {
return err
}
if err := os.Remove(dlPath); err != nil {
up.Logf("failed to clean up %q: %w", dlPath, err)
up.Logf("failed to clean up %q: %v", dlPath, err)
}
if err := restartSystemdUnit(context.Background()); err != nil {
if errors.Is(err, errors.ErrUnsupported) {