mirror of https://github.com/noisymime/Arduino.git
Catching Throwable instead of IOException in an attempt to catch unknown "type mismatch error" on windows8
This commit is contained in:
parent
3a4695fd09
commit
5032e630fe
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue