change error to warn for moving from unencrypted to encrypted

This commit is contained in:
Sam Machin
2022-03-21 09:29:41 +00:00
parent c7f48a83c0
commit d9bd736159
3 changed files with 6 additions and 6 deletions

View File

@@ -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()}))

View File

@@ -105,7 +105,8 @@
"error-saving":"Error saving credentials: __message__",
"not-registered": "Credential type '__type__' is not registered",
"system-key-warning": "\n\n---------------------------------------------------------------------\nYour flow credentials file is encrypted using a system-generated key.\n\nIf the system-generated key is lost for any reason, your credentials\nfile will not be recoverable, you will have to delete it and re-enter\nyour credentials.\n\nYou should set your own key using the 'credentialSecret' option in\nyour settings file. Node-RED will then re-encrypt your credentials\nfile using your chosen key the next time you deploy a change.\n---------------------------------------------------------------------\n",
"unencrypted" : "Using Unecrypted credentials"
"unencrypted" : "Using unecrypted credentials",
"encryptednotfound" : "Encrypted crededntials not found"
},
"flows": {
"safe-mode": "Flows stopped in safe mode. Deploy to start.",