479
479
def report_bug(exc_info, err_file):
480
480
"""Report an exception that probably indicates a bug in bzr"""
482
print_exception(exc_info, err_file)
484
err_file.write('bzr %s on python %s %s\n' % \
486
bzrlib._format_version_tuple(sys.version_info),
487
platform.platform(aliased=1)))
488
err_file.write('arguments: %r\n' % sys.argv)
490
'encoding: %r, fsenc: %r, lang: %r\n' % (
491
osutils.get_user_encoding(), sys.getfilesystemencoding(),
492
os.environ.get('LANG')))
493
err_file.write("plugins:\n")
494
for name, a_plugin in sorted(plugin.plugins().items()):
495
err_file.write(" %-20s %s [%s]\n" %
496
(name, a_plugin.path(), a_plugin.__version__))
499
*** Bazaar has encountered an internal error.
500
Please report a bug at https://bugs.launchpad.net/bzr/+filebug
501
including this traceback, and a description of what you
502
were doing when the error occurred.
481
from bzrlib.crash import report_bug
482
report_bug(exc_info, err_file)