Skip to content

Commit 98e91f2

Browse files
bugfix
1 parent 3d9bd18 commit 98e91f2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

kernel/src/services/DeviceService.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,12 @@ export class DeviceService {
6666

6767
if (!this.port) {
6868
logCallback('No port selected, try again.');
69+
return;
6970
}
7071

7172
if (!this.portChecked) {
7273
logCallback('Port cannot be opened.\nIs the port already open in another application or tab?');
74+
return;
7375
}
7476

7577
try {
@@ -86,7 +88,7 @@ export class DeviceService {
8688

8789
this.isDeviceConnected = true;
8890
} catch (err) {
89-
logCallback('Failed to connect:', err);
91+
logCallback('Failed to connect:');
9092
throw err;
9193
}
9294

0 commit comments

Comments
 (0)