mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-16 11:21:18 +03:00
Catching Throwable instead of IOException in an attempt to catch unknown "type mismatch error" on windows8
This commit is contained in:
@ -232,7 +232,7 @@ public class Platform extends processing.app.Platform {
|
||||
CommandLine toDevicePath = CommandLine.parse("/usr/sbin/system_profiler SPUSBDataType");
|
||||
executor.execute(toDevicePath);
|
||||
return new String(baos.toByteArray());
|
||||
} catch (IOException e) {
|
||||
} catch (Throwable e) {
|
||||
return super.preListAllCandidateDevices();
|
||||
}
|
||||
}
|
||||
|
@ -345,7 +345,7 @@ public class Platform extends processing.app.Platform {
|
||||
CommandLine toDevicePath = CommandLine.parse(listComPorts);
|
||||
executor.execute(toDevicePath);
|
||||
return new String(baos.toByteArray());
|
||||
} catch (IOException e) {
|
||||
} catch (Throwable e) {
|
||||
return super.preListAllCandidateDevices();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user