bubble LoadURL's errors up through rv

This commit is contained in:
alecf%netscape.com 1999-03-20 02:02:31 +00:00
parent f02e5d511d
commit 61335fb37d

View File

@ -65,7 +65,7 @@ nsresult nsMailboxService::ParseMailbox(const nsFileSpec& aMailboxPath, nsIStrea
nsMailboxProtocol * protocol = new nsMailboxProtocol(url);
if (protocol)
protocol->LoadURL(url, nsnull /* no consumers for this type of url */);
rv = protocol->LoadURL(url, nsnull /* no consumers for this type of url */);
if (aURL)
*aURL = url;
@ -109,7 +109,7 @@ nsresult nsMailboxService::DisplayMessage(const nsFileSpec& aMailboxPath, nsMsgK
// create a protocol instance to run the url..
nsMailboxProtocol * protocol = new nsMailboxProtocol(url);
if (protocol)
protocol->LoadURL(url, aDisplayConsumer);
rv = protocol->LoadURL(url, aDisplayConsumer);
if (aURL)
*aURL = url;