mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
change error to warn for moving from unencrypted to encrypted
This commit is contained in:
@@ -241,9 +241,8 @@ var api = module.exports = {
|
||||
} else {
|
||||
if (encryptionEnabled) {
|
||||
// Our config expects the credentials to be encrypted but the encrypted object is not found
|
||||
var error = new Error("Encrypted credentials not found");
|
||||
error.code = "credentials_load_failed";
|
||||
throw error
|
||||
log.warn(log._("nodes.credentials.encryptednotfound",{message:err.toString()}))
|
||||
credentialCache = credentials;
|
||||
} else {
|
||||
// credentialSecret is set to False
|
||||
log.warn(log._("nodes.credentials.unencrypted",{message:err.toString()}))
|
||||
|
Reference in New Issue
Block a user