fixes notification for invalid credentials
This commit is contained in:
parent
ad45eca130
commit
b08ccb6111
6 changed files with 24 additions and 18 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue