diff hglib/error.py @ 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 79f88b4db15f
children 59cb26bf866e
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