remove error output for non-error conditions

This commit is contained in:
peterl%netscape.com 1999-09-03 23:38:40 +00:00
parent 1b015c684b
commit e9991bb140
3 changed files with 3 additions and 3 deletions

View File

@ -792,7 +792,7 @@ CSSLoaderImpl::DidLoadStyle(nsIUnicharStreamLoader* aLoader,
}
}
else { // load failed or document now gone, cleanup
if (mDocument) { // still have doc, must have failed
if (mDocument && NS_FAILED(aStatus)) { // still have doc, must have failed
// Dump error message to console.
#ifdef NECKO
char *url;

View File

@ -792,7 +792,7 @@ CSSLoaderImpl::DidLoadStyle(nsIUnicharStreamLoader* aLoader,
}
}
else { // load failed or document now gone, cleanup
if (mDocument) { // still have doc, must have failed
if (mDocument && NS_FAILED(aStatus)) { // still have doc, must have failed
// Dump error message to console.
#ifdef NECKO
char *url;

View File

@ -792,7 +792,7 @@ CSSLoaderImpl::DidLoadStyle(nsIUnicharStreamLoader* aLoader,
}
}
else { // load failed or document now gone, cleanup
if (mDocument) { // still have doc, must have failed
if (mDocument && NS_FAILED(aStatus)) { // still have doc, must have failed
// Dump error message to console.
#ifdef NECKO
char *url;