~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/request.py

  • Committer: Martin
  • Date: 2011-03-02 20:39:58 UTC
  • mto: This revision was merged to the branch mainline in revision 5694.
  • Revision ID: gzlist@googlemail.com-20110302203958-ky3qss741ljo5f0f
Store exception name after initial 'error' slot as suggested in review

Show diffs side-by-side

added added

removed removed

Lines of Context:
451
451
        return ('MemoryError',)
452
452
    # Unserialisable error.  Log it, and return a generic error
453
453
    trace.log_exception_quietly()
454
 
    return (trace._qualified_exception_name(err.__class__, True), str(err))
 
454
    return ('error', trace._qualified_exception_name(err.__class__, True),
 
455
        str(err))
455
456
 
456
457
 
457
458
class HelloRequest(SmartServerRequest):