# HG changeset patch # User Idan Kamara # Date 1313437605 -10800 # Node ID 00bb0701323a55f34cee873bce7e19e5a54c8547 # Parent 1e33bbea23e51aec0cb48fd1615f8b3eef2bdc7f error: return stderr as __str__ for CommandError diff -r 1e33bbea23e5 -r 00bb0701323a hglib/error.py --- 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