mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 621515 - Improve "no corresponding type!" warning. r=peterv a=jst
This commit is contained in:
parent
b7cac8ada1
commit
031f9e5c6f
@ -55,6 +55,7 @@
|
||||
#include "nsDOMClassInfo.h"
|
||||
#include "nsCRT.h"
|
||||
#include "nsIObserverService.h"
|
||||
#include "nsPrintfCString.h"
|
||||
|
||||
#define NS_INTERFACE_PREFIX "nsI"
|
||||
#define NS_DOM_INTERFACE_PREFIX "nsIDOM"
|
||||
@ -687,7 +688,8 @@ nsScriptNameSpaceManager::AddCategoryEntryToHash(nsICategoryManager* aCategoryMa
|
||||
} else if (strcmp(aCategory, JAVASCRIPT_GLOBAL_DYNAMIC_NAMESET_CATEGORY) == 0) {
|
||||
type = nsGlobalNameStruct::eTypeDynamicNameSet;
|
||||
} else {
|
||||
NS_WARNING("The category has no corresponding type!");
|
||||
NS_WARNING(nsPrintfCString(128, "The category '%s' has no corresponding type!",
|
||||
aCategory).get());
|
||||
return NS_ERROR_UNEXPECTED;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user