mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
parent
54dbdde9cb
commit
97c771f93a
@ -203,10 +203,10 @@ LocalFileSystem.prototype.open = function(){
|
|||||||
var newContext = self.cache._export();
|
var newContext = self.cache._export();
|
||||||
scopes.forEach(function(scope) {
|
scopes.forEach(function(scope) {
|
||||||
var storagePath = getStoragePath(self.storageBaseDir,scope);
|
var storagePath = getStoragePath(self.storageBaseDir,scope);
|
||||||
var context = newContext[scope];
|
var context = newContext[scope] || {};
|
||||||
var stringifiedContext = stringify(context);
|
var stringifiedContext = stringify(context);
|
||||||
if (stringifiedContext.circular && !self.knownCircularRefs[scope]) {
|
if (stringifiedContext.circular && !self.knownCircularRefs[scope]) {
|
||||||
log.warn(log._("error-circular",{scope:scope}));
|
log.warn(log._("context.localfilesystem.error-circular",{scope:scope}));
|
||||||
self.knownCircularRefs[scope] = true;
|
self.knownCircularRefs[scope] = true;
|
||||||
} else {
|
} else {
|
||||||
delete self.knownCircularRefs[scope];
|
delete self.knownCircularRefs[scope];
|
||||||
@ -324,7 +324,7 @@ LocalFileSystem.prototype.set = function(scope, key, value, callback) {
|
|||||||
}
|
}
|
||||||
var stringifiedContext = stringify(obj);
|
var stringifiedContext = stringify(obj);
|
||||||
if (stringifiedContext.circular && !self.knownCircularRefs[scope]) {
|
if (stringifiedContext.circular && !self.knownCircularRefs[scope]) {
|
||||||
log.warn(log._("error-circular",{scope:scope}));
|
log.warn(log._("context.localfilesystem.error-circular",{scope:scope}));
|
||||||
self.knownCircularRefs[scope] = true;
|
self.knownCircularRefs[scope] = true;
|
||||||
} else {
|
} else {
|
||||||
delete self.knownCircularRefs[scope];
|
delete self.knownCircularRefs[scope];
|
||||||
|
Loading…
Reference in New Issue
Block a user