Skip to content

Commit 2cf3144

Browse files
author
Alberto Iannaccone
committed
minor fix: error messages
1 parent c5384c3 commit 2cf3144

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
@@ -312,7 +312,7 @@ export default class SocketDaemon extends Daemon {
312312
}
313313
const serialPort = this.devicesList.getValue().serial.find(p => p.Name === port);
314314
if (!serialPort) {
315-
return this.serialMonitorOpened.error(new Error(`Can't find port ${port}`));
315+
return this.serialMonitorOpened.error(new Error(`Can't find board at ${port}`));
316316
}
317317
this.appMessages
318318
.pipe(takeUntil(this.serialMonitorOpened.pipe(filter(open => !open))))
@@ -321,7 +321,7 @@ export default class SocketDaemon extends Daemon {
321321
this.serialMonitorOpened.next(false);
322322
}
323323
if (message.Cmd === 'CloseFail') {
324-
this.serialMonitorOpened.error(new Error(`Failed to close serial ${port}`));
324+
this.serialMonitorOpened.error(new Error(`Failed to close serial monitor at ${port}`));
325325
}
326326
});
327327
this.socket.emit('command', `close ${port}`);

0 commit comments

Comments
 (0)