file-restore: exit with code 1 in case streaming fails
This way the task gets marked as "failed" in PVE. Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
This commit is contained in:
parent
6a59fa0e18
commit
ddbd63ed5f
|
@ -228,6 +228,7 @@ impl BlockRestoreDriver for QemuBlockDriver {
|
||||||
.await
|
.await
|
||||||
{
|
{
|
||||||
eprintln!("reading file extraction stream failed - {}", err);
|
eprintln!("reading file extraction stream failed - {}", err);
|
||||||
|
std::process::exit(1);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue