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

Fix serialport to not try to log error and tell user instead

to close #637
This commit is contained in:
Dave Conway-Jones 2020-03-27 11:36:18 +00:00
parent e3e6c41030
commit a57de3d8f2
No known key found for this signature in database
GPG Key ID: 302A6725C594817F
4 changed files with 7 additions and 5 deletions

View File

@ -465,7 +465,7 @@ module.exports = function(RED) {
res.json(a);
},
err => {
node.log('Error listing serial ports', err)
res.json([RED._("serial.errors.list")]);
}
)
});

View File

@ -65,7 +65,8 @@
"error": "serial port __port__ error: __error__",
"unexpected-close": "serial port __port__ closed unexpectedly",
"disconnected": "serial port __port__ disconnected",
"closed": "serial port __port__ closed"
"closed": "serial port __port__ closed",
"list": "Failed to list ports. Please enter manually."
}
}
}

View File

@ -50,7 +50,8 @@
"error": "serial port __port__ error: __error__",
"unexpected-close": "serial port __port__ closed unexpectedly",
"disconnected": "serial port __port__ disconnected",
"closed": "serial port __port__ closed"
"closed": "serial port __port__ closed",
"list": "ポートのリスト化に失敗しました。手動で入力してください。"
}
}
}

View File

@ -1,9 +1,9 @@
{
"name" : "node-red-node-serialport",
"version" : "0.10.0",
"version" : "0.10.1",
"description" : "Node-RED nodes to talk to serial ports",
"dependencies" : {
"serialport" : "^8.0.5"
"serialport" : "^8.0.7"
},
"repository" : {
"type":"git",