commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r3778 - gnuradio/branches/developers/eb/power/gnuradio


From: eb
Subject: [Commit-gnuradio] r3778 - gnuradio/branches/developers/eb/power/gnuradio-core/src/python/gnuradio/gr
Date: Wed, 11 Oct 2006 18:52:33 -0600 (MDT)

Author: eb
Date: 2006-10-11 18:52:33 -0600 (Wed, 11 Oct 2006)
New Revision: 3778

Modified:
   
gnuradio/branches/developers/eb/power/gnuradio-core/src/python/gnuradio/gr/basic_flow_graph.py
Log:
improved error message on size mismatch

Modified: 
gnuradio/branches/developers/eb/power/gnuradio-core/src/python/gnuradio/gr/basic_flow_graph.py
===================================================================
--- 
gnuradio/branches/developers/eb/power/gnuradio-core/src/python/gnuradio/gr/basic_flow_graph.py
      2006-10-11 21:23:43 UTC (rev 3777)
+++ 
gnuradio/branches/developers/eb/power/gnuradio-core/src/python/gnuradio/gr/basic_flow_graph.py
      2006-10-12 00:52:33 UTC (rev 3778)
@@ -239,7 +239,10 @@
         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 ()





reply via email to

[Prev in Thread] Current Thread [Next in Thread]