1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

leveldb reports not ready as error rather than warn,

so can be seen by catch node.
This commit is contained in:
dceejay 2015-05-21 14:12:49 +01:00
parent b03db617e2
commit 8920b981ef
2 changed files with 3 additions and 3 deletions

View File

@ -61,7 +61,7 @@ module.exports = function(RED) {
} }
else { node.error("Cannot make key string from msg.topic"); } else { node.error("Cannot make key string from msg.topic"); }
} }
else { node.warn("Database not ready"); } else { node.error("Database not ready",msg); }
}); });
} }
RED.nodes.registerType("leveldb in",LevelDBNodeIn); RED.nodes.registerType("leveldb in",LevelDBNodeIn);
@ -89,7 +89,7 @@ module.exports = function(RED) {
} }
else { node.error("Cannot make key string from msg.topic"); } else { node.error("Cannot make key string from msg.topic"); }
} }
else { node.warn("Database not ready"); } else { node.error("Database not ready",msg); }
}); });
} }
RED.nodes.registerType("leveldb out",LevelDBNodeOut); RED.nodes.registerType("leveldb out",LevelDBNodeOut);

View File

@ -1,6 +1,6 @@
{ {
"name" : "node-red-node-leveldb", "name" : "node-red-node-leveldb",
"version" : "0.0.3", "version" : "0.0.4",
"description" : "A Node-RED node to read and write to a LevelDB database", "description" : "A Node-RED node to read and write to a LevelDB database",
"dependencies" : { "dependencies" : {
"level" : "1.0.0" "level" : "1.0.0"