summaryrefslogtreecommitdiff
path: root/grc/python/Block.py
diff options
context:
space:
mode:
authorSebastian Koslowski <koslowski@kit.edu>2015-06-19 08:39:34 +0200
committerSebastian Koslowski <koslowski@kit.edu>2015-06-19 08:39:34 +0200
commit39143b6179c888c9cec58908c959c65c9f6c257c (patch)
tree318e9ac592ce1f785cb8b77e9312d825b5f9369b /grc/python/Block.py
parentb9034d561b09f2c10f85507662cfd3a3900efead (diff)
grc: fix generate mode error message (#800)
Diffstat (limited to 'grc/python/Block.py')
-rw-r--r--grc/python/Block.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/grc/python/Block.py b/grc/python/Block.py
index 191b03b452..48b827792e 100644
--- a/grc/python/Block.py
+++ b/grc/python/Block.py
@@ -106,7 +106,8 @@ class Block(_Block, _GUIBlock):
current_generate_option = self.get_parent().get_option('generate_options')
for label, option in (('WX GUI', 'wx_gui'), ('QT GUI', 'qt_gui')):
if self.get_name().startswith(label) and current_generate_option != option:
- self.add_error_message("Can't generate this block in mode " + repr(option))
+ self.add_error_message("Can't generate this block in mode " +
+ repr(current_generate_option))
def rewrite(self):
"""