Rephrase message in case of missing config file, see #16

This commit is contained in:
Gwenhael Le Moine 2024-02-23 23:25:19 +01:00
parent 52464c29c6
commit 59ff50c339
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -466,7 +466,9 @@ int parse_args( int argc, char* argv[] )
/**********************/
normalize_filename( config_file, normalized_config_file );
if ( !config_read( normalized_config_file ) ) {
fprintf( stderr, "There was an error reading %s !\n", normalized_config_file );
fprintf( stderr, "\nConfiguration file %s doesn't seem to exist or is invalid!\n", normalized_config_file );
fprintf( stderr, "Continuing using default configuration as printed below.\n\n" );
fprintf( stderr, "You can solve this by running `mkdir -p %s && %s --print-config >> %s`\n\n", normalized_config_path, progname,
normalized_config_file );
print_config = true;