yonmaor1 / p5-flipdots

an API to control a flipdot display via p5.js
0 stars 0 forks source link

Node needs error reporting when serial cable is not present #1

Closed golanlevin closed 1 day ago

golanlevin commented 1 day ago

Running the Node server at home without the device -- produces error:

gl@glm1 p5-flipdots % node golive.js

serving local server at http://localhost:8081
Node.js Server Error: node:internal/process/promises:391
    triggerUncaughtException(err, true /* fromPromise */);
    ^

Error: Error: No such file or directory, cannot open /dev/tty.usbserial-A9E7G8FR
Emitted 'error' event on SerialPort instance at:
    at SerialPort._error (/Users/gl/Documents/GitHub/p5-flipdots/node_modules/@serialport/stream/dist/index.js:85:18)
    at /Users/gl/Documents/GitHub/p5-flipdots/node_modules/@serialport/stream/dist/index.js:118:18
yonmaor1 commented 1 day ago

fixed in commit ce951b3