~vcs-imports/evad/trunk

« back to all changes in this revision

Viewing changes to Evad/handler.py

  • Committer: etnoy
  • Date: 2007-12-03 17:47:46 UTC
  • Revision ID: vcs-imports@canonical.com-20071203174746-xl84fok7a6b3ua9j
Fixed a grave error handling bug

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
    except:
49
49
        error()
50
50
 
 
51
def die(message):
 
52
     config.dying=True
 
53
     config.lastwords=str(message)
 
54
     terminate(1)
 
55
 
51
56
def error():
52
57
    import traceback
53
58
    die("%s\n%s" % ("Evad encountered a fatal exception:" ,traceback.format_exc()))