This commit is contained in:
Dario Nieuwenhuis 2023-08-19 19:35:10 +02:00
parent 2d980068c0
commit 0032f8a2ec

View File

@ -35,9 +35,9 @@ macro_rules! ioctl {
}; };
$self.ioctl(&mut msg).await?; $self.ioctl(&mut msg).await?;
let Some(proto::CtrlMsgPayload::$resp_variant($resp)) = msg.payload else { let Some(proto::CtrlMsgPayload::$resp_variant($resp)) = msg.payload else {
warn!("unexpected response variant"); warn!("unexpected response variant");
return Err(Error::Internal); return Err(Error::Internal);
}; };
if $resp.resp != 0 { if $resp.resp != 0 {
return Err(Error::Failed($resp.resp)); return Err(Error::Failed($resp.resp));
} }