mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-03 20:22:59 -05:00 
			
		
		
		
	Improve error message in generate_query_config.pl
Add usage information to the ARGV-incorrect-length error message in generate_query_config.pl. A plain usage message looks a bit incongruous when raised as an error, but the error message alone is unhelpful. Signed-off-by: David Horstmann <david.horstmann@arm.com>
This commit is contained in:
		
							parent
							
								
									d64f4b249c
								
							
						
					
					
						commit
						ff0a3b3aa6
					
				@ -37,7 +37,7 @@ use strict;
 | 
				
			|||||||
my ($config_file, $query_config_format_file, $query_config_file);
 | 
					my ($config_file, $query_config_format_file, $query_config_file);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if( @ARGV ) {
 | 
					if( @ARGV ) {
 | 
				
			||||||
    die "Invalid number of arguments" if scalar @ARGV != 3;
 | 
					    die "Invalid number of arguments - usage: $0 [CONFIG_FILE TEMPLATE_FILE OUTPUT_FILE]" if scalar @ARGV != 3;
 | 
				
			||||||
    ($config_file, $query_config_format_file, $query_config_file) = @ARGV;
 | 
					    ($config_file, $query_config_format_file, $query_config_file) = @ARGV;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    -f $config_file or die "No such file: $config_file";
 | 
					    -f $config_file or die "No such file: $config_file";
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user