ftpd: clearer error message if Twisted needs a patch (by Nils Durner)

This commit is contained in:
Zooko O'Whielacronx 2010-01-26 06:34:11 -08:00
parent 26c6b806d7
commit 4a4305e7e6

View File

@ -289,7 +289,7 @@ class FTPServer(service.MultiService):
# make sure we're using a patched Twisted that uses IWriteFile.close:
# see docs/frontends/FTP-and-SFTP.txt and
# http://twistedmatrix.com/trac/ticket/3462 for details.
assert "close" in ftp.IWriteFile.names(), "your twisted is lacking"
assert "close" in ftp.IWriteFile.names(), "your twisted is lacking a vital patch, see docs/frontends/FTP-and-SFTP.txt"
r = Dispatcher(client)
p = portal.Portal(r)