Skip to content

Commit 21d2e89

Browse files
committed
Print option name with error msg
1 parent fdbab46 commit 21d2e89

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/fosslight_source/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def main() -> None:
119119
except Exception as ex:
120120
logger.debug(f"Failed to print log.: {ex}")
121121
else:
122-
logger.error(f"Input path({path_to_scan}) is not a directory. Please enter a valid path.")
122+
logger.error(f"(-p option) Input path({path_to_scan}) is not a directory. Please enter a valid path.")
123123
sys.exit(1)
124124

125125

src/fosslight_source/run_scancode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def run_scan(
135135
logger.error(f"Analyze {path_to_scan}: {msg}")
136136
else:
137137
success = False
138-
msg = "Check the path to scan. :" + path_to_scan
138+
msg = f"(-p option) Check the path to scan: {path_to_scan}"
139139

140140
if not return_results:
141141
result_list = []

0 commit comments

Comments
 (0)