forked from toolshed/abra
		
	fix: better error message when network gone
This commit is contained in:
		@ -77,6 +77,8 @@ func Fatal(hostname string, err error) error {
 | 
			
		||||
		return fmt.Errorf("connection timed out for %s", hostname)
 | 
			
		||||
	} else if strings.Contains(out, "Permission denied") {
 | 
			
		||||
		return fmt.Errorf("ssh auth: permission denied for %s", hostname)
 | 
			
		||||
	} else if strings.Contains(out, "Network is unreachable") {
 | 
			
		||||
		return fmt.Errorf("unable to connect to %s, network is unreachable?", hostname)
 | 
			
		||||
	} else {
 | 
			
		||||
		return err
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user