diff --git a/amaranth_cli/__init__.py b/amaranth_cli/__init__.py index 70fd51eae..eacc80ae1 100644 --- a/amaranth_cli/__init__.py +++ b/amaranth_cli/__init__.py @@ -34,7 +34,8 @@ def component(reference): raise argparse.ArgumentTypeError(f"'{qual_name}:{mod_name}' refers to an object that is not elaboratable") return obj else: - raise argparse.ArgumentTypeError(f"{reference!r} is not a Python object reference") + raise argparse.ArgumentTypeError(f"{reference!r} can not be parsed as a Python object reference, " + "expecting a name like: 'path.to.module:ObjectInModule'") parser = argparse.ArgumentParser( "amaranth", description="""