Skip to content

Commit 224b11a

Browse files
author
Alberto Iannaccone
committed
minor fix: error messages
1 parent ca0533f commit 224b11a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/socket-daemon.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ export default class SocketDaemon extends Daemon {
310310
}
311311
const serialPort = this.devicesList.getValue().serial.find(p => p.Name === port);
312312
if (!serialPort) {
313-
return this.serialMonitorOpened.error(new Error(`Can't find port ${port}`));
313+
return this.serialMonitorOpened.error(new Error(`Can't find board at ${port}`));
314314
}
315315
this.appMessages
316316
.pipe(takeUntil(this.serialMonitorOpened.pipe(filter(open => !open))))
@@ -319,7 +319,7 @@ export default class SocketDaemon extends Daemon {
319319
this.serialMonitorOpened.next(false);
320320
}
321321
if (message.Cmd === 'CloseFail') {
322-
this.serialMonitorOpened.error(new Error(`Failed to close serial ${port}`));
322+
this.serialMonitorOpened.error(new Error(`Failed to close serial monitor at ${port}`));
323323
}
324324
});
325325
this.socket.emit('command', `close ${port}`);

0 commit comments

Comments
 (0)