mirror of
				https://github.com/ARM-software/devlib.git
				synced 2025-11-03 15:31:20 +00:00 
			
		
		
		
	android: Raise better error when trying to push non-existent file
This commit is contained in:
		@@ -204,6 +204,8 @@ class AdbConnection(object):
 | 
			
		||||
        if timeout is None:
 | 
			
		||||
            timeout = self.timeout
 | 
			
		||||
        command = "push '{}' '{}'".format(source, dest)
 | 
			
		||||
        if not os.path.exists(source):
 | 
			
		||||
            raise HostError('No such file "{}"'.format(source))
 | 
			
		||||
        return adb_command(self.device, command, timeout=timeout)
 | 
			
		||||
 | 
			
		||||
    def pull(self, source, dest, timeout=None):
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user