device: introduce new IPC error message for unknown error
Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
This commit is contained in:
parent
87bdcb2ae4
commit
674a4675a1
2 changed files with 3 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue