backup: check inner archiver exit code
If inner tar returns with non-zero code, mostly like the backup is incomplete, so it is very important to report it.
This commit is contained in:
		
							parent
							
								
									82918ee704
								
							
						
					
					
						commit
						1ec0060577
					
				| @ -642,6 +642,11 @@ class Backup(object): | ||||
|                         pass | ||||
|                     raise | ||||
| 
 | ||||
|                 yield from tar_sparse.wait() | ||||
|                 if tar_sparse.returncode: | ||||
|                     raise qubes.exc.QubesException( | ||||
|                         'Failed to archive {} file'.format(file_info.path)) | ||||
| 
 | ||||
| 
 | ||||
|             # This VM done, update progress | ||||
|             self._done_vms_bytes += vm_info.size | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Marek Marczykowski-Górecki
						Marek Marczykowski-Górecki