summaryrefslogtreecommitdiff
path: root/gnuradio-core
diff options
context:
space:
mode:
authoreb2006-10-24 21:01:36 +0000
committereb2006-10-24 21:01:36 +0000
commit93366b0cc2b423e47ac21b261e3944096f25b53e (patch)
treef90971f419d290d6b97a17e35407c572e83a1899 /gnuradio-core
parentda120ed66db04bc10346d46a8b2ef959bd60c7e4 (diff)
downloadgnuradio-93366b0cc2b423e47ac21b261e3944096f25b53e.tar.gz
gnuradio-93366b0cc2b423e47ac21b261e3944096f25b53e.tar.bz2
gnuradio-93366b0cc2b423e47ac21b261e3944096f25b53e.zip
improved error message on size mismatch
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@3846 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gnuradio-core')
-rw-r--r--gnuradio-core/src/python/gnuradio/gr/basic_flow_graph.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/gnuradio-core/src/python/gnuradio/gr/basic_flow_graph.py b/gnuradio-core/src/python/gnuradio/gr/basic_flow_graph.py
index 1837e93a7..01c96f0d1 100644
--- a/gnuradio-core/src/python/gnuradio/gr/basic_flow_graph.py
+++ b/gnuradio-core/src/python/gnuradio/gr/basic_flow_graph.py
@@ -239,7 +239,10 @@ class basic_flow_graph (object):
src_size = src_sig.sizeof_stream_item (src_endpoint.port)
dst_size = dst_sig.sizeof_stream_item (dst_endpoint.port)
if src_size != dst_size:
- raise ValueError, 'source and destination data sizes are different'
+ raise ValueError, (
+' '.join(('source and destination data sizes are different:',
+src_endpoint.block.name(),
+dst_endpoint.block.name())))
def _check_contiguity (self, m, sig, used_ports, dir):
used_ports.sort ()