Revision: 2535
Author: janne.t.harkonen
Date: Thu Feb 25 01:19:34 2010
Log: Fix use of str() in reporting variable replacing error
http://code.google.com/p/robotframework/source/detail?r=2535
Modified:
/trunk/src/robot/parsing/metadata.py
=======================================
--- /trunk/src/robot/parsing/metadata.py Thu Feb 25 00:30:51 2010
+++ /trunk/src/robot/parsing/metadata.py Thu Feb 25 01:19:34 2010
@@ -137,7 +137,7 @@
self.value = variables.replace_list(item.value)
except DataError, err:
raise DataError("Replacing variables from setting '%s'
failed: %s"
- % (self.name, str(err)))
+ % (self.name, utils.unic(err)))
if len(self.value) == 0:
raise DataError("Setting '%s' requires a value" % self.name)
if self.name == 'Resource' and len(self.value) > 1: