Revision: 2731a613ec4a
Author:   Mikko Korpela <[email protected]>
Date:     Tue Nov  8 04:38:12 2011
Log:      improved error message
http://code.google.com/p/robotframework/source/detail?r=2731a613ec4a

Modified:
 /src/robot/result/builders.py

=======================================
--- /src/robot/result/builders.py       Thu Nov  3 09:54:22 2011
+++ /src/robot/result/builders.py       Tue Nov  8 04:38:12 2011
@@ -32,8 +32,8 @@
     try:
         return ExecutionResultBuilder(source).build(ExecutionResult())
     # TODO: handle source in errors messages when it's a file object
-    except DataError:
- raise DataError("File '%s' is not Robot Framework output file." % source)
+    except DataError, err:
+ raise DataError("File '%s' is not Robot Framework output file: %s" % (source, err))
     except:
         raise DataError("Opening XML file '%s' failed: %s"
                         % (source, utils.get_error_message()))

Reply via email to