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:
parent
fcc8ad05df
commit
675aae2423
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue