Imported Upstream version 3.0.4
[debian/gnuradio] / gnuradio-core / src / python / gnuradio / gr / basic_flow_graph.py
index 1837e93a7af33e618106f7f95e8dfb36d76b326e..13152dd296133cea79f322f7f9d8f104e6d0ebce 100644 (file)
@@ -5,7 +5,7 @@
 # 
 # GNU Radio is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
+# the Free Software Foundation; either version 3, or (at your option)
 # any later version.
 # 
 # GNU Radio is distributed in the hope that it will be useful,
@@ -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 ()