mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: Improve restore error message about URL conversion
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
@@ -2032,7 +2032,8 @@ impl Transportable for MemoryManager {
|
|||||||
.to_file_path()
|
.to_file_path()
|
||||||
.map_err(|_| {
|
.map_err(|_| {
|
||||||
MigratableError::MigrateSend(anyhow!(
|
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| {
|
.and_then(|path| {
|
||||||
|
|||||||
@@ -17,7 +17,10 @@ pub fn url_to_path(url: &Url) -> std::result::Result<PathBuf, MigratableError> {
|
|||||||
"file" => url
|
"file" => url
|
||||||
.to_file_path()
|
.to_file_path()
|
||||||
.map_err(|_| {
|
.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| {
|
.and_then(|path| {
|
||||||
if !path.is_dir() {
|
if !path.is_dir() {
|
||||||
|
|||||||
Reference in New Issue
Block a user