diff --git a/src/node/db/API.js b/src/node/db/API.js index 68a57d7d..4a1371ba 100644 --- a/src/node/db/API.js +++ b/src/node/db/API.js @@ -154,6 +154,13 @@ Example returns: */ exports.setText = function(padID, text, callback) { + //text is required + if(typeof text != "string") + { + callback(new customError("text is no string","apierror")); + return; + } + //get the pad getPadSafe(padID, true, function(err, pad) {