Ticket #4909: fix-stor-errors.patch

File fix-stor-errors.patch, 443 bytes (added by bigjools, 3 years ago)
  • ftp.py

    old new  
    11151115        def ebSent(err): 
    11161116            log.msg("Unexpected error receiving file from client:") 
    11171117            log.err(err) 
     1118            if isinstance(err.value, FTPCmdError): 
     1119                return (err.value.errorCode, err.value.errorMessage) 
    11181120            return (CNX_CLOSED_TXFR_ABORTED,) 
    11191121 
    11201122        def cbConsumer(cons):