diff options
-rw-r--r-- | device/uapi.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/device/uapi.go b/device/uapi.go index 160806d..90a9952 100644 --- a/device/uapi.go +++ b/device/uapi.go @@ -168,7 +168,10 @@ func (device *Device) IpcSetOperation(r io.Reader) (err error) { } } - return scanner.Err() + if err := scanner.Err(); err != nil { + return ipcErrorf(ipc.IpcErrorIO, "failed to read input: %w", err) + } + return nil } func (device *Device) handleDeviceLine(key, value string) error { |