diff options
| author | David Anderson <danderson@tailscale.com> | 2021-05-06 14:46:56 -0700 |
|---|---|---|
| committer | Dave Anderson <dave@natulte.net> | 2021-05-06 16:02:09 -0700 |
| commit | 5bd38b10b49ec6446560d0da3ce67beaed69f68e (patch) | |
| tree | eba7a63e107a13622bf17974fb9a29abc0014d09 | |
| parent | 7d16c8228bcf70a3b82afe994e8c5fa42057c5f3 (diff) | |
| download | tailscale-5bd38b10b49ec6446560d0da3ce67beaed69f68e.tar.xz tailscale-5bd38b10b49ec6446560d0da3ce67beaed69f68e.zip | |
net/dns: log the correct error when NM Reapply fails.
Found while debugging #1870.
Signed-off-by: David Anderson <danderson@tailscale.com>
| -rw-r--r-- | net/dns/nm.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dns/nm.go b/net/dns/nm.go index 811c4f2c2..29f0f2205 100644 --- a/net/dns/nm.go +++ b/net/dns/nm.go @@ -260,7 +260,7 @@ func (m *nmManager) trySet(ctx context.Context, config OSConfig) error { } if call := device.CallWithContext(ctx, "org.freedesktop.NetworkManager.Device.Reapply", 0, settings, version, uint32(0)); call.Err != nil { - return fmt.Errorf("reapply: %w", err) + return fmt.Errorf("reapply: %w", call.Err) } return nil |
