mirror of
				https://github.com/avatao-content/baseimage-tutorial-framework
				synced 2025-11-04 02:42:56 +00:00 
			
		
		
		
	Improve CommandEventHandler subprocess failure error message
This commit is contained in:
		@@ -129,7 +129,7 @@ class CommandEventHandler(PipeIOEventHandler):
 | 
			
		||||
        return_code = self._proc.wait()
 | 
			
		||||
        if return_code != 0:
 | 
			
		||||
            _, stderr = self._proc.communicate()
 | 
			
		||||
            raise RuntimeError(f'Subprocess failed: {stderr.decode()}')
 | 
			
		||||
            raise RuntimeError(f'Subprocess failed ({return_code})! Stderr:\n{stderr.decode()}')
 | 
			
		||||
 | 
			
		||||
    def cleanup(self):
 | 
			
		||||
        with suppress(ProcessLookupError):
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user