diff --git a/content/xslt/src/xslt/txMozillaXSLTProcessor.cpp b/content/xslt/src/xslt/txMozillaXSLTProcessor.cpp index 9e713cec63ad..466194758d32 100644 --- a/content/xslt/src/xslt/txMozillaXSLTProcessor.cpp +++ b/content/xslt/src/xslt/txMozillaXSLTProcessor.cpp @@ -155,7 +155,9 @@ txToDocHandlerFactory::createHandlerWith(txOutputFormat* aFormat, } } - return NS_OK; + NS_RUNTIMEABORT("Unknown output method"); + + return NS_ERROR_FAILURE; } nsresult @@ -203,7 +205,9 @@ txToDocHandlerFactory::createHandlerWith(txOutputFormat* aFormat, } } - return NS_OK; + NS_RUNTIMEABORT("Unknown output method"); + + return NS_ERROR_FAILURE; } nsresult