Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print option name with error msg #228

Merged
merged 1 commit into from
Oct 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading