ui: write traceback to self.ferr stable
authorSimon Heimberg <simohe@besonet.ch>
Sun, 11 Sep 2011 14:42:30 +0200
branchstable
changeset 15088 31c9e2a702d1
parent 15086 db0646afb725
child 15089 bfe903b1ff4e
child 15091 106f89299da6
ui: write traceback to self.ferr
mercurial/ui.py
--- a/mercurial/ui.py	Sun Sep 11 18:49:41 2011 +0200
+++ b/mercurial/ui.py	Sun Sep 11 14:42:30 2011 +0200
@@ -653,9 +653,9 @@
         printed.'''
         if self.tracebackflag:
             if exc:
-                traceback.print_exception(exc[0], exc[1], exc[2])
+                traceback.print_exception(exc[0], exc[1], exc[2], file=self.ferr)
             else:
-                traceback.print_exc()
+                traceback.print_exc(file=self.ferr)
         return self.tracebackflag
 
     def geteditor(self):