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>
This commit is contained in:
Josh Bleecher Snyder 2021-01-15 13:54:55 -08:00
parent fcc8ad05df
commit 675aae2423

View File

@ -393,7 +393,7 @@ func (device *Device) IpcSetOperation(r io.Reader) error {
} }
} }
return nil return scanner.Err()
} }
func (device *Device) IpcGet() (string, error) { func (device *Device) IpcGet() (string, error) {