From 3b3de3c144c1e16631065434318e074495f7fb51 Mon Sep 17 00:00:00 2001 From: "chak%netscape.com" Date: Sat, 12 Jan 2002 15:05:16 +0000 Subject: [PATCH] #100816 - FTP:Need errror for DNS error - nonexistent hostname. Checking into the branch...already checked into the trunk r/sr=darin git-svn-id: svn://10.0.0.236/branches/MOZILLA_0_9_4_BRANCH@112028 18797224-902f-48f8-a5cc-f745e15eee43 --- .../netwerk/protocol/ftp/src/nsFtpConnectionThread.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/mozilla/netwerk/protocol/ftp/src/nsFtpConnectionThread.cpp b/mozilla/netwerk/protocol/ftp/src/nsFtpConnectionThread.cpp index 60404c46812..87b53cb7241 100644 --- a/mozilla/netwerk/protocol/ftp/src/nsFtpConnectionThread.cpp +++ b/mozilla/netwerk/protocol/ftp/src/nsFtpConnectionThread.cpp @@ -1918,11 +1918,9 @@ nsFtpState::StopProcessing() { (void) mPrompter->Alert(nsnull, text.get()); } - nsresult broadcastErrorCode = NS_OK; - if ( NS_FAILED(mControlStatus) || NS_FAILED(mInternalError)) { - // Lets mask the FTP error code so that a client does not have to parse it - broadcastErrorCode = NS_BINDING_ABORTED; - } + nsresult broadcastErrorCode = mControlStatus; + if ( NS_SUCCEEDED(broadcastErrorCode)) + broadcastErrorCode = mInternalError; if (mFireCallbacks && mChannel) { nsCOMPtr channelListener = do_QueryInterface(mChannel);