Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Upgraded a 'busy' message to an 'error' message when the device is no…
…t found
  • Loading branch information
csarnataro committed Aug 17, 2022
commit 9456c145e7ba3d1575bf6c32028451ecc8613789
7 changes: 6 additions & 1 deletion src/socket-daemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,12 @@ export default class SocketDaemon extends Daemon {
this.uploading.next({ status: this.UPLOAD_IN_PROGRESS, msg: `Programming with: ${message.Cmd}` });
break;
case 'Busy':
this.uploading.next({ status: this.UPLOAD_IN_PROGRESS, msg: message.Msg });
if (message.Msg && message.Msg.indexOf('No device found') === 0) {
this.uploading.next({ status: this.UPLOAD_ERROR, err: message.Msg });
}
else {
this.uploading.next({ status: this.UPLOAD_IN_PROGRESS, msg: message.Msg });
}
break;
case 'Error':
this.uploading.next({ status: this.UPLOAD_ERROR, err: message.Msg });
Expand Down