mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 18:51:28 +00:00
Adding error reporting to XBL.
This commit is contained in:
parent
2ecacd28c4
commit
132acf464e
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user