mirror of
				https://github.com/sharkdp/bat.git
				synced 2025-11-04 09:01:56 +00:00 
			
		
		
		
	Print error message if bat not found on path
This commit is contained in:
		
				
					committed by
					
						
						David Peter
					
				
			
			
				
	
			
			
			
						parent
						
							b623adc6df
						
					
				
				
					commit
					6df8b3fe72
				
			@@ -64,6 +64,9 @@ def create_highlighted_versions(output_basepath):
 | 
			
		||||
                file=sys.stderr,
 | 
			
		||||
            )
 | 
			
		||||
            sys.exit(1)
 | 
			
		||||
        except FileNotFoundError:
 | 
			
		||||
            print("Error: Could not execute 'bat'. Please make sure that the executable is available on the PATH.")
 | 
			
		||||
            sys.exit(1)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
if __name__ == "__main__":
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user