mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
add ,msg to leveldb errors
This commit is contained in:
parent
7af48ce10b
commit
c19197f540
@ -68,11 +68,11 @@ module.exports = function(RED) {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
node.levelConfig.db.put(msg.topic, msg.payload, function(err) {
|
node.levelConfig.db.put(msg.topic, msg.payload, function(err) {
|
||||||
if (err) { node.error(err); }
|
if (err) { node.error(err,msg); }
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else { node.error("Cannot make key string from msg.topic"); }
|
else { node.error("Cannot make key string from msg.topic",msg); }
|
||||||
}
|
}
|
||||||
else { node.error("Database not ready",msg); }
|
else { node.error("Database not ready",msg); }
|
||||||
});
|
});
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"name" : "node-red-node-leveldb",
|
"name" : "node-red-node-leveldb",
|
||||||
"version" : "0.0.8",
|
"version" : "0.0.9",
|
||||||
"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.6.0"
|
"level" : "^1.7.0"
|
||||||
},
|
},
|
||||||
"repository" : {
|
"repository" : {
|
||||||
"type":"git",
|
"type":"git",
|
||||||
|
Loading…
Reference in New Issue
Block a user