Added error-checking to track the build problem on the Mac (and possibly Linux).

This commit is contained in:
hyatt%netscape.com 1999-04-22 22:00:04 +00:00
Родитель 054e2c8616
Коммит 63c265da0b
2 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -268,7 +268,7 @@ nsChromeRegistry::ConvertChromeURL(nsIURL* aChromeURL)
nsString chromeBase;
if (NS_FAILED(rv = GetChromeResource(chromeBase, chromeResource, kCHROME_base))) {
NS_ERROR("Unable to retrieve codebase for chrome entry.");
NS_ERROR("Unable to retrieve codebase for chrome entry. The RDF file was misparsed or malformed.");
return rv;
}
@ -297,7 +297,7 @@ nsChromeRegistry::ConvertChromeURL(nsIURL* aChromeURL)
// Append the "main" entry.
nsString mainFile;
if (NS_FAILED(rv = GetChromeResource(mainFile, chromeResource, kCHROME_main))) {
NS_ERROR("Unable to retrieve the main file registry entry for a chrome URL.");
NS_ERROR("Unable to retrieve the main file registry entry for a chrome URL.\n The RDF file was misparsed or malformed.");
return rv;
}
chromeBase += mainFile;
@ -361,7 +361,7 @@ nsChromeRegistry::GetChromeResource(nsString& aResult,
}
if (chromeBase == nsnull)
return NS_OK;
return NS_ERROR_FAILURE;
nsCOMPtr<nsIRDFResource> resource;
nsCOMPtr<nsIRDFLiteral> literal;

Просмотреть файл

@ -268,7 +268,7 @@ nsChromeRegistry::ConvertChromeURL(nsIURL* aChromeURL)
nsString chromeBase;
if (NS_FAILED(rv = GetChromeResource(chromeBase, chromeResource, kCHROME_base))) {
NS_ERROR("Unable to retrieve codebase for chrome entry.");
NS_ERROR("Unable to retrieve codebase for chrome entry. The RDF file was misparsed or malformed.");
return rv;
}
@ -297,7 +297,7 @@ nsChromeRegistry::ConvertChromeURL(nsIURL* aChromeURL)
// Append the "main" entry.
nsString mainFile;
if (NS_FAILED(rv = GetChromeResource(mainFile, chromeResource, kCHROME_main))) {
NS_ERROR("Unable to retrieve the main file registry entry for a chrome URL.");
NS_ERROR("Unable to retrieve the main file registry entry for a chrome URL.\n The RDF file was misparsed or malformed.");
return rv;
}
chromeBase += mainFile;
@ -361,7 +361,7 @@ nsChromeRegistry::GetChromeResource(nsString& aResult,
}
if (chromeBase == nsnull)
return NS_OK;
return NS_ERROR_FAILURE;
nsCOMPtr<nsIRDFResource> resource;
nsCOMPtr<nsIRDFLiteral> literal;