fixes notification for invalid credentials

This commit is contained in:
Matias Pando 2014-10-28 18:06:32 -03:00
commit b08ccb6111
6 changed files with 24 additions and 18 deletions

View file

@ -13,7 +13,7 @@ EncryptedInsightStorage.prototype.getItem = function(name, callback) {
function(err, body) {
var decryptedJson = cryptoUtil.decrypt(key, body);
if (!decryptedJson) {
return callback('Internal Error');
return callback('PNOTFOUND');
}
return callback(null, decryptedJson);
}