mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-13 03:24:26 +00:00
bubble LoadURL's errors up through rv
This commit is contained in:
parent
f02e5d511d
commit
61335fb37d
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user