File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -469,10 +469,14 @@ def __main():
469
469
cmdline .run_scan = ''
470
470
471
471
# If we have an entry for prepare_scan but it's an empty string, default.
472
- if cmdline .prepare_scan is not None and not cmdline .prepare_scan :
473
- default_path = '../src/java-class-info/default_config.json'
474
- if os .path .isfile (default_path ):
475
- cmdline .prepare_scan = os .path .abspath (default_path )
472
+ if cmdline .prepare_scan == '' :
473
+ default_config_path = '../src/java-class-info/default_config.json'
474
+ if os .path .isfile (default_config_path ):
475
+ cmdline .prepare_scan = os .path .abspath (default_config_path )
476
+ else :
477
+ print ("ERROR: No config file for entry point detection passed in via --prepare-scan"
478
+ " and the default file can't be found at {0}." .format (default_config_path ))
479
+ return
476
480
477
481
if cmdline .name is None :
478
482
cmdline .name = os .path .basename (cmdline .install_dir )
You can’t perform that action at this time.
0 commit comments