Skip to content
Snippets Groups Projects
Commit 85646794 authored by Filippo Cremonese's avatar Filippo Cremonese
Browse files

Use loguru instead of print to signal error

parent b711d82e
No related branches found
No related tags found
No related merge requests found
from loguru import logger
from ..model.configuration import Configuration
from ..util import parse_component_name, is_installed
from ..actions.install import uninstall
......@@ -11,7 +13,6 @@ def install_subcommand(sub_argparser):
def handle_uninstall(args, config: Configuration):
component_name, build_name = parse_component_name(args.component)
if not is_installed(config, component_name, build_name):
print(f"Component {args.component} is not installed")
return
logger.error(f"Component {args.component} is not installed")
uninstall(component_name, config)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment