~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to services/python-console

  • Committer: William Grant
  • Date: 2010-02-25 10:13:14 UTC
  • Revision ID: grantw@unimelb.edu.au-20100225101314-xrq2fd878n4a60g7
Improve console error messages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
378
378
    """Handles response from signals"""
379
379
    global terminate
380
380
    if signum == signal.SIGXCPU:
381
 
        terminate = "CPU Time Limit Exceeded"
 
381
        terminate = "CPU time limit exceeded"
382
382
 
383
383
def dispatch_msg(msg):
384
384
    global terminate
385
385
    if msg['cmd'] == 'terminate':
386
 
        terminate = "User requested console be terminated"
 
386
        terminate = "User requested restart"
387
387
    if terminate:
388
388
        raise ivle.chat.Terminate({"terminate":terminate})
389
389
    expiry.ping()