diff options
author | jblum | 2008-09-17 03:11:44 +0000 |
---|---|---|
committer | jblum | 2008-09-17 03:11:44 +0000 |
commit | a91336462fa381e6744240580c545b01537ddbec (patch) | |
tree | fb99adfaec09ca7d6418c8ad32fb53f7e3066809 /grc/src/platforms/base/Block.py | |
parent | e902750cc04f1d02d589b8237a181bed4c8f626c (diff) | |
download | gnuradio-a91336462fa381e6744240580c545b01537ddbec.tar.gz gnuradio-a91336462fa381e6744240580c545b01537ddbec.tar.bz2 gnuradio-a91336462fa381e6744240580c545b01537ddbec.zip |
error message formatting
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9595 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'grc/src/platforms/base/Block.py')
-rw-r--r-- | grc/src/platforms/base/Block.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/grc/src/platforms/base/Block.py b/grc/src/platforms/base/Block.py index e3ef84d94..cb350b7cb 100644 --- a/grc/src/platforms/base/Block.py +++ b/grc/src/platforms/base/Block.py @@ -146,11 +146,11 @@ class Block(Element): All checks must evaluate to true. """ if not self.get_enabled(): return - for c in self.get_params() + self.get_sinks() + self.get_sources(): + for c in self.get_params() + self.get_sinks() + self.get_sources() + self.get_connections(): try: assert(c.is_valid()) except AssertionError: for msg in c.get_error_messages(): - self._add_error_message('%s: %s'%(c, msg)) + self._add_error_message('>>> %s:\n\t%s'%(c, msg)) def __str__(self): return 'Block - %s - %s(%s)'%(self.get_id(), self.get_name(), self.get_key()) |