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:
parent
e3e6c41030
commit
a57de3d8f2
@ -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")]);
|
||||
}
|
||||
)
|
||||
});
|
||||
|
@ -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."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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": "ポートのリスト化に失敗しました。手動で入力してください。"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user