~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to shell.py

  • Committer: Martin
  • Date: 2011-02-15 01:04:23 UTC
  • mto: This revision was merged to the branch mainline in revision 756.
  • Revision ID: gzlist@googlemail.com-20110215010423-480lcirdxbs8nucm
Log tracebacks for errors during shell session

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
import string
25
25
import sys
26
26
 
27
 
from bzrlib import osutils
 
27
from bzrlib import osutils, trace
28
28
from bzrlib.branch import Branch
29
29
from bzrlib.config import config_dir, ensure_config_dir_exists
30
30
from bzrlib.commands import get_cmd_object, all_command_names, get_alias
198
198
            else:
199
199
                return (cmd_obj.run_argv_aliases(args, alias_args) or 0)
200
200
        except BzrError, e:
 
201
            trace.log_exception_quietly()
201
202
            print e
202
203
        except KeyboardInterrupt, e:
203
204
            print "Interrupted"
204
205
        except Exception, e:
205
 
#            print "Unhandled error:\n%s" % errors.exception_str(e)
 
206
            trace.log_exception_quietly()
206
207
            print "Unhandled error:\n%s" % (e)
207
208
 
208
209