diff options
author | Josh Bleecher Snyder <josh@tailscale.com> | 2021-01-15 13:54:55 -0800 |
---|---|---|
committer | Josh Bleecher Snyder <josh@tailscale.com> | 2021-01-25 08:47:48 -0800 |
commit | 675aae24232750e5a41c0a10bb1195fa4bb63d42 (patch) | |
tree | b5c89b623eb894fdb150a4b2abc47e109a77f9d7 | |
parent | fcc8ad05df75d73f10f9aaa1c468a11a66a48f87 (diff) |
device: return errors from ipc scanner
The code as written will drop any read errors on the floor.
Fix that.
Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
-rw-r--r-- | device/uapi.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/device/uapi.go b/device/uapi.go index 370ad4e..dbb60b6 100644 --- a/device/uapi.go +++ b/device/uapi.go @@ -393,7 +393,7 @@ func (device *Device) IpcSetOperation(r io.Reader) error { } } - return nil + return scanner.Err() } func (device *Device) IpcGet() (string, error) { |