Skip to content

Commit 4a231b3

Browse files
committed
Update logging to reflect skill installation success or failure
1 parent a636ef9 commit 4a231b3

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

neon_core/util/skill_utils.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,11 @@ def install_skills_from_list(skills_to_install: list, config: dict = None):
9494
:param config: optional dict configuration
9595
"""
9696
from neon_utils.packaging_utils import install_packages_from_pip
97-
install_packages_from_pip("neon-core", skills_to_install, True)
98-
LOG.info(f"Installed {len(skills_to_install)} skills")
97+
ret_code = install_packages_from_pip("neon-core", skills_to_install, True)
98+
if ret_code == 0:
99+
LOG.info(f"Installed {len(skills_to_install)} skills")
100+
else:
101+
LOG.error(f"Error installing skills: {ret_code}")
99102

100103

101104
def install_skills_default(config: dict = None):

0 commit comments

Comments
 (0)