changeset 36:00bb0701323a

error: return stderr as __str__ for CommandError
author Idan Kamara <idankk86@gmail.com>
date Mon, 15 Aug 2011 22:46:45 +0300
parents 1e33bbea23e5
children 5506a241c826
files hglib/error.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hglib/error.py	Sun Aug 14 00:56:33 2011 +0300
+++ b/hglib/error.py	Mon Aug 15 22:46:45 2011 +0300
@@ -5,6 +5,9 @@
         self.out = out
         self.err = err
 
+    def __str__(self):
+        return self.err
+
 class ServerError(Exception):
     pass