diff options
author | Josh Bleecher Snyder <josh@tailscale.com> | 2021-01-25 09:21:51 -0800 |
---|---|---|
committer | Josh Bleecher Snyder <josh@tailscale.com> | 2021-01-25 09:36:17 -0800 |
commit | 674a4675a10ea7eb83fad2eada5bf7211c7575f3 (patch) | |
tree | bef8d13ba80ee656c44505734df02413b8116026 /device | |
parent | 87bdcb2ae472711c3b0b3679fbdb393e39b4dbc3 (diff) |
device: introduce new IPC error message for unknown error
Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
Diffstat (limited to 'device')
-rw-r--r-- | device/uapi.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/device/uapi.go b/device/uapi.go index 90a9952..424fbfb 100644 --- a/device/uapi.go +++ b/device/uapi.go @@ -427,8 +427,8 @@ func (device *Device) IpcHandle(socket net.Conn) { // write status var status *IPCError if err != nil && !errors.As(err, &status) { - // I/O error, maybe something unexpected - status = ipcErrorf(1, "other UAPI error: %w", err) + // shouldn't happen + status = ipcErrorf(ipc.IpcErrorUnknown, "other UAPI error: %w", err) } if status != nil { device.log.Error.Println(status) |