Skip to content

Commit

Permalink
Merge pull request #228 from fosslight/develop
Browse files Browse the repository at this point in the history
Print option name with error msg
  • Loading branch information
bjk7119 authored Oct 18, 2024
2 parents 9e494a0 + 204c67f commit e297a36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fosslight_dependency/run_dependency_scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def run_dependency_scanner(package_manager='', input_dir='', output_dir_file='',
support_packagemanager = list(const.SUPPORT_PACKAE.keys())

if package_manager not in support_packagemanager:
logger.error(f"You entered the unsupported package manager({package_manager}).")
logger.error(f"(-m option) You entered the unsupported package manager({package_manager}).")
logger.error("Please enter the supported package manager({0}) with '-m' option."
.format(", ".join(support_packagemanager)))
return False, scan_item
Expand All @@ -166,7 +166,7 @@ def run_dependency_scanner(package_manager='', input_dir='', output_dir_file='',
os.chdir(input_dir)
input_dir = os.getcwd()
else:
logger.error(f"You entered the wrong input path({input_dir}) to run the script.")
logger.error(f"(-p option) You entered the wrong input path({input_dir}) to run the script.")
logger.error("Please enter the existed input path with '-p' option.")
return False, scan_item
else:
Expand Down

0 comments on commit e297a36

Please sign in to comment.