1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

make error message reflect missing module...

ie just badwords... not badwords/regexp
This commit is contained in:
Dave C-J 2013-12-12 20:48:10 +00:00
parent 636b9a23ba
commit f8ed9cebeb

View File

@ -15,6 +15,8 @@
**/
var RED = require(process.env.NODE_RED_HOME+"/red/red");
var badwords = require('badwords');
if (badwords.length == 0 ) { return; }
var badwordsRegExp = require('badwords/regexp');
function BadwordsNode(n) {