Skip to content

Commit 5032e63

Browse files
author
Federico Fissore
committed
Catching Throwable instead of IOException in an attempt to catch unknown "type mismatch error" on windows8
1 parent 3a4695f commit 5032e63

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/src/processing/app/macosx/Platform.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ public String preListAllCandidateDevices() {
232232
CommandLine toDevicePath = CommandLine.parse("/usr/sbin/system_profiler SPUSBDataType");
233233
executor.execute(toDevicePath);
234234
return new String(baos.toByteArray());
235-
} catch (IOException e) {
235+
} catch (Throwable e) {
236236
return super.preListAllCandidateDevices();
237237
}
238238
}

app/src/processing/app/windows/Platform.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ public String preListAllCandidateDevices() {
345345
CommandLine toDevicePath = CommandLine.parse(listComPorts);
346346
executor.execute(toDevicePath);
347347
return new String(baos.toByteArray());
348-
} catch (IOException e) {
348+
} catch (Throwable e) {
349349
return super.preListAllCandidateDevices();
350350
}
351351
}

0 commit comments

Comments
 (0)