diff --git a/src/python/jw/pkg/cmds/distro/CmdInfo.py b/src/python/jw/pkg/cmds/distro/CmdInfo.py index 45353698..db4a6ee3 100644 --- a/src/python/jw/pkg/cmds/distro/CmdInfo.py +++ b/src/python/jw/pkg/cmds/distro/CmdInfo.py @@ -3,6 +3,7 @@ import re from argparse import Namespace, ArgumentParser +from ...lib.log import * from ..Cmd import Cmd from ..CmdProjects import CmdProjects @@ -22,7 +23,8 @@ class CmdInfo(Cmd): # export continue ret = ret.replace(patt, val) except Exception as e: - raise Exception(f'Failed to expand macro "{macro}" inside "{string}": {e}') + log(ERR, f'Failed to expand macro "{macro}" inside "{string}": {str(e)}') + raise return ret def add_arguments(self, parser: ArgumentParser) -> None: