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:
		
				
					committed by
					
						 Thomas Lamprecht
						Thomas Lamprecht
					
				
			
			
				
	
			
			
			
						parent
						
							6a59fa0e18
						
					
				
				
					commit
					ddbd63ed5f
				
			| @ -228,6 +228,7 @@ impl BlockRestoreDriver for QemuBlockDriver { | ||||
|                     .await | ||||
|                 { | ||||
|                     eprintln!("reading file extraction stream failed - {}", err); | ||||
|                     std::process::exit(1); | ||||
|                 } | ||||
|             }); | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user