You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What are you trying to do? Open a port that does not exist.
What happens? Fail to catch an unhandled promise rejection.
What should have happened? Catch should have caught the error.
It could be the fact that it is early Monday morning and I haven't messed with serialport in a year, but with the latest version, if new(+open) should throw...
% node test.js
(node:47978) UnhandledPromiseRejectionWarning: Error: Error: No such file or directory, cannot open noportbythisname
(node:47978) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:47978) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
% node -v
v12.14.0
% grep serialport package.json
"serialport": "^9.1.0"
Versions, Operating System and Hardware
SerialPort@9.1.0
Node.js@12.14.0
Mac Big Sur
Hardware and chipset? STLink V2
The text was updated successfully, but these errors were encountered:
Summary of Problem
It could be the fact that it is early Monday morning and I haven't messed with
serialport
in a year, but with the latest version, if new(+open) should throw...Code to Reproduce the Issue
Versions, Operating System and Hardware
The text was updated successfully, but these errors were encountered: