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?;
let Some(proto::CtrlMsgPayload::$resp_variant($resp)) = msg.payload else {
warn!("unexpected response variant");
return Err(Error::Internal);
};
warn!("unexpected response variant");
return Err(Error::Internal);
};
if $resp.resp != 0 {
return Err(Error::Failed($resp.resp));
}