diff --git a/caps/src/nsScriptSecurityManager.cpp b/caps/src/nsScriptSecurityManager.cpp index 8937adb15e0..944666bd92f 100644 --- a/caps/src/nsScriptSecurityManager.cpp +++ b/caps/src/nsScriptSecurityManager.cpp @@ -2050,7 +2050,7 @@ nsScriptSecurityManager::GetScriptPrincipal(JSContext *cx, JSPrincipals *jsp = JS_GetScriptPrincipals(cx, script); if (!jsp) { *rv = NS_ERROR_FAILURE; - // Script didn't have principals -- shouldn't happen. + NS_ERROR("Script compiled without principals!"); return nsnull; } nsJSPrincipals *nsJSPrin = static_cast(jsp);