mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-17 06:52:18 +01:00
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");
|
CommandLine toDevicePath = CommandLine.parse("/usr/sbin/system_profiler SPUSBDataType");
|
||||||
executor.execute(toDevicePath);
|
executor.execute(toDevicePath);
|
||||||
return new String(baos.toByteArray());
|
return new String(baos.toByteArray());
|
||||||
} catch (IOException e) {
|
} catch (Throwable e) {
|
||||||
return super.preListAllCandidateDevices();
|
return super.preListAllCandidateDevices();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -345,7 +345,7 @@ public class Platform extends processing.app.Platform {
|
|||||||
CommandLine toDevicePath = CommandLine.parse(listComPorts);
|
CommandLine toDevicePath = CommandLine.parse(listComPorts);
|
||||||
executor.execute(toDevicePath);
|
executor.execute(toDevicePath);
|
||||||
return new String(baos.toByteArray());
|
return new String(baos.toByteArray());
|
||||||
} catch (IOException e) {
|
} catch (Throwable e) {
|
||||||
return super.preListAllCandidateDevices();
|
return super.preListAllCandidateDevices();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user