Adding error reporting to XBL.

This commit is contained in:
hyatt%netscape.com 2000-03-30 03:18:44 +00:00
parent 2ecacd28c4
commit 132acf464e
2 changed files with 14 additions and 0 deletions

View File

@ -270,6 +270,13 @@ nsXBLService::LoadBindings(nsIContent* aContent, const nsString& aURL)
return rv;
}
if (!binding) {
nsCAutoString str = "Failed to locate XBL binding. The invalid binding name is: ";
str += aURL;
NS_ERROR(str);
return NS_ERROR_FAILURE;
}
// Install the binding on the content node.
bindableContent->SetBinding(binding);

View File

@ -270,6 +270,13 @@ nsXBLService::LoadBindings(nsIContent* aContent, const nsString& aURL)
return rv;
}
if (!binding) {
nsCAutoString str = "Failed to locate XBL binding. The invalid binding name is: ";
str += aURL;
NS_ERROR(str);
return NS_ERROR_FAILURE;
}
// Install the binding on the content node.
bindableContent->SetBinding(binding);