Update of /cvsroot/cvsshell/cvsshell/src
In directory usw-pr-cvs1:/tmp/cvs-serv23879/src
Modified Files:
app.py
Log Message:
Error msg are now printed out with printErr(...)
Index: app.py
===================================================================
RCS file: /cvsroot/cvsshell/cvsshell/src/app.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** app.py 8 Mar 2002 22:31:00 -0000 1.5
--- app.py 8 Mar 2002 22:44:33 -0000 1.6
***************
*** 208,229 ****
pass
except:
! out = sys.stderr
! out.write('========== Traceback starts here ==========\n')
! out.write('uncaught: ' + `(sys.exc_type,sys.exc_value)` + '\n')
traceback.print_exc()
! out.write("""
Program Version: %s
Platform: %s
! Python version: %s
! """ % (self.version, sys.platform, sys.version))
! out.write("========== Traceback ends here ==========\n" \
! "You have discovered a bug in %s.\n" % self.name)
if self.bugAddress.find('@') > 0:
! out.write("Please send a bug report to \n %s,"
! % self.bugAddress)
else:
! out.write("Please fill out a bug report at \n %s,"
! % self.bugAddress)
! self.printMsg("\nincluding the traceback above.\n")
self.closeApp()
return res
--- 208,227 ----
pass
except:
! self.printErr('========== Traceback starts here ==========')
! self.printErr('uncaught: ' + `(sys.exc_type,sys.exc_value)`)
traceback.print_exc()
! self.printErr("""
Program Version: %s
Platform: %s
! Python version: %s""" % (self.version, sys.platform, sys.version))
! self.printErr("========== Traceback ends here ==========\n" \
! "You have discovered a bug in %s." % self.name)
if self.bugAddress.find('@') > 0:
! self.printErr("Please send a bug report to \n %s,"
! % self.bugAddress)
else:
! self.printErr("Please fill out a bug report at \n %s,"
! % self.bugAddress)
! self.printErr("including the traceback above.")
self.closeApp()
return res
|