mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: http: Error out earlier if we can't create API server
This removes a panic inside the API thread. Fixes: #2395 Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
@@ -140,6 +140,10 @@ pub enum Error {
|
||||
/// Error activating virtio devices
|
||||
#[error("Error activating virtio devices: {0:?}")]
|
||||
ActivateVirtioDevices(VmError),
|
||||
|
||||
/// Error creating API server
|
||||
#[error("Error creating API server {0:?}")]
|
||||
CreatingAPIServer(micro_http::ServerError),
|
||||
}
|
||||
pub type Result<T> = result::Result<T, Error>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user