Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2012-05-04 17:56:39 (GMT)
committer Walter Bender <walter.bender@gmail.com>2012-05-04 17:56:39 (GMT)
commit39d408b41643da352f54c011c1967b74b887964e (patch)
tree5608e4f7b97fcb0d493ccf8528d356a4dcf9feb9 /TurtleArt
parent001d6b7e542326ef7b5e766210dcf746e4d721c2 (diff)
don't strip off leading character of error messages unless it is #
Diffstat (limited to 'TurtleArt')
-rw-r--r--TurtleArt/talogo.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/TurtleArt/talogo.py b/TurtleArt/talogo.py
index ce83843..8c53498 100644
--- a/TurtleArt/talogo.py
+++ b/TurtleArt/talogo.py
@@ -512,7 +512,10 @@ class LogoCode:
return False
except logoerror, e:
self.tw.showblocks()
- self.tw.showlabel('syntaxerror', str(e)[1:-1])
+ if str(e)[0] == '#':
+ self.tw.showlabel('syntaxerror', str(e)[1:-1])
+ else:
+ self.tw.showlabel('syntaxerror', str(e))
self.tw.turtles.show_all()
return False
return True