From 5fb736eb7490f9d5b49120d3ecd9b6d0e014f28c Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Mon, 3 Jun 2024 16:54:15 -0700 Subject: [PATCH] add a more descriptive error message --- masque/pattern.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/masque/pattern.py b/masque/pattern.py index 63dbfb2..b073d36 100644 --- a/masque/pattern.py +++ b/masque/pattern.py @@ -1165,7 +1165,7 @@ class Pattern(PortList, AnnotatableImpl, Mirrorable): map_out[vi] = None if isinstance(other, Pattern): - assert append + assert append, 'Got a name (not an abstract) but was asked to reference (not append)' self.place( other,