From 21d2e8984e30ddfd87887266ee2a338ba3c97443 Mon Sep 17 00:00:00 2001 From: Jaekwon Bang Date: Tue, 15 Oct 2024 12:35:11 +0900 Subject: [PATCH 1/2] Print option name with error msg --- src/fosslight_source/cli.py | 2 +- src/fosslight_source/run_scancode.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fosslight_source/cli.py b/src/fosslight_source/cli.py index 7e824e1..5251eee 100755 --- a/src/fosslight_source/cli.py +++ b/src/fosslight_source/cli.py @@ -119,7 +119,7 @@ def main() -> None: except Exception as ex: logger.debug(f"Failed to print log.: {ex}") else: - logger.error(f"Input path({path_to_scan}) is not a directory. Please enter a valid path.") + logger.error(f"(-p option) Input path({path_to_scan}) is not a directory. Please enter a valid path.") sys.exit(1) diff --git a/src/fosslight_source/run_scancode.py b/src/fosslight_source/run_scancode.py index 1f03e3d..5ac84ee 100755 --- a/src/fosslight_source/run_scancode.py +++ b/src/fosslight_source/run_scancode.py @@ -135,7 +135,7 @@ def run_scan( logger.error(f"Analyze {path_to_scan}: {msg}") else: success = False - msg = "Check the path to scan. :" + path_to_scan + msg = f"(-p option) Check the path to scan: {path_to_scan}" if not return_results: result_list = [] From f12b4394792b0cbe8d6d9b86935bfb8c2f1ca4bb Mon Sep 17 00:00:00 2001 From: "jiyeong.seok" Date: Fri, 18 Oct 2024 16:23:29 +0900 Subject: [PATCH 2/2] Fix flake8 error Signed-off-by: jiyeong.seok --- src/fosslight_source/run_scancode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fosslight_source/run_scancode.py b/src/fosslight_source/run_scancode.py index 5ac84ee..a3d6904 100755 --- a/src/fosslight_source/run_scancode.py +++ b/src/fosslight_source/run_scancode.py @@ -135,7 +135,7 @@ def run_scan( logger.error(f"Analyze {path_to_scan}: {msg}") else: success = False - msg = f"(-p option) Check the path to scan: {path_to_scan}" + msg = f"(-p option) Check the path to scan: {path_to_scan}" if not return_results: result_list = []