mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-21 20:15:21 +00:00
vmm: Improve restore error message about URL conversion
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
2122233047
commit
deedfcdc35
@ -2032,7 +2032,8 @@ impl Transportable for MemoryManager {
|
||||
.to_file_path()
|
||||
.map_err(|_| {
|
||||
MigratableError::MigrateSend(anyhow!(
|
||||
"Could not convert file URL to a file path"
|
||||
"Could not convert file URL to a file path: {}",
|
||||
destination_url
|
||||
))
|
||||
})
|
||||
.and_then(|path| {
|
||||
|
@ -17,7 +17,10 @@ pub fn url_to_path(url: &Url) -> std::result::Result<PathBuf, MigratableError> {
|
||||
"file" => url
|
||||
.to_file_path()
|
||||
.map_err(|_| {
|
||||
MigratableError::MigrateSend(anyhow!("Could not convert file URL to a file path"))
|
||||
MigratableError::MigrateSend(anyhow!(
|
||||
"Could not convert file URL to a file path: {}",
|
||||
url.as_str()
|
||||
))
|
||||
})
|
||||
.and_then(|path| {
|
||||
if !path.is_dir() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user