api_client: Updated error message for sending fds

Updated error message for the SocketSendFds error to be more
descriptive.

Signed-off-by: SamrutGadde <samrut.gadde@gmail.com>
This commit is contained in:
SamrutGadde 2024-05-03 15:42:58 -05:00 committed by Bo Chen
parent 51a9f78625
commit c3d69a9bac

View File

@ -12,7 +12,7 @@ use vmm_sys_util::sock_ctrl_msg::ScmSocket;
pub enum Error { pub enum Error {
#[error("Error writing to or reading from HTTP socket: {0}")] #[error("Error writing to or reading from HTTP socket: {0}")]
Socket(std::io::Error), Socket(std::io::Error),
#[error("Error writing to or reading from HTTP socket: {0}")] #[error("Error sending file descriptors: {0}")]
SocketSendFds(vmm_sys_util::errno::Error), SocketSendFds(vmm_sys_util::errno::Error),
#[error("Error parsing HTTP status code: {0}")] #[error("Error parsing HTTP status code: {0}")]
StatusCodeParsing(std::num::ParseIntError), StatusCodeParsing(std::num::ParseIntError),