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:
Stefan Reiter 2021-04-26 15:04:15 +02:00 committed by Thomas Lamprecht
parent 6a59fa0e18
commit ddbd63ed5f
1 changed files with 1 additions and 0 deletions

View File

@ -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);
} }
}); });