mirror of
https://github.com/lxc/incus
synced 2026-08-02 05:26:46 +00:00
internal/rsync: Log deferred errors with WarnOnError
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
This commit is contained in:
parent
2de2256436
commit
770e527323
@ -145,7 +145,7 @@ func sendSetup(name string, path string, bwlimit string, execPath string, featur
|
||||
return nil, nil, nil, err
|
||||
}
|
||||
|
||||
defer func() { _ = l.Close() }()
|
||||
defer logger.WarnOnError(l.Close, "Failed to close listener")
|
||||
|
||||
/*
|
||||
* Here, the path /tmp/foo is ignored. Since we specify localhost,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user