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:
parent
b03db617e2
commit
8920b981ef
@ -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);
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user