Changeset 489:286ad1fa42a0

Show
Ignore:
Timestamp:
09/20/08 10:40:38 (2 months ago)
Author:
"Brian Warner <warner@lothar.com>"
branch:
default
Message:

xfer-client.py: use the exit code to indicate failure

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • ChangeLog

    r488 r489  
     12008-09-20  Brian Warner  <warner@lothar.com> 
     2 
     3        * doc/listings/xfer-client.py (_failure): do sys.exit(1) upon 
     4        failure, so the caller can detect it via the exit code 
     5 
    162008-09-10  Brian Warner  <warner@allmydata.com> 
    27 
  • doc/listings/xfer-client.py

    r486 r489  
    1414""" 
    1515 
    16 import os.path 
     16import sys, os.path 
    1717from twisted.internet import reactor 
    1818from foolscap import UnauthenticatedTub 
     
    6262    print "error while transferring file:" 
    6363    print f 
     64    sys.exit(1) 
    6465d.addCallbacks(_success, _failure) 
    6566