I can`t catch the error emitted when is not connection with COM port. How can I do it?
Error:
triggerUncaughtException(err, true /* fromPromise */);
^
Error: Opening COM4: File not found
Emitted 'error' event on SerialPort instance at:
at SerialPort._error (C:\DEVOPS\01-08-2024-begitrack\BegiTrack\backend-electron\node_modules\@serialport\stream\dist\index.js:85:18)
at C:\DEVOPS\01-08-2024-begitrack\BegiTrack\backend-electron\node_modules\@serialport\stream\dist\index.js:118:18
I can`t catch the error emitted when is not connection with COM port. How can I do it?
Error: