Skip to content

Commit 9d070d1

Browse files
committed
Add exit code if there is an error in extension
Signed-off-by: Jaekwon Bang <[email protected]>
1 parent 5fb2e7a commit 9d070d1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ lxml
44
virtualenv
55
pyyaml
66
lastversion
7-
fosslight_util>=1.3.4
7+
fosslight_util>=1.3.12
88
PyGithub

src/fosslight_dependency/run_dependency_scanner.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ def run_dependency_scanner(package_manager='', input_dir='', output_dir_file='',
8686
output_file = "Opossum_input_" + _start_time
8787
else:
8888
output_file = "FOSSLight-Report_" + _start_time
89+
else:
90+
logger.error(msg)
91+
sys.exit(1)
8992

9093
logger, _result_log = init_log(os.path.join(output_path, "fosslight_dependency_log_" + _start_time + ".txt"),
9194
True, logging.INFO, logging.DEBUG, _PKG_NAME)

0 commit comments

Comments
 (0)