1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-17 22:23:10 +03:00

Adding some error checking code related to the launching of avr-size because some people were having trouble on Windows.

This commit is contained in:
David A. Mellis
2006-12-25 18:00:00 +00:00
parent f723bfbe56
commit 1433c517cf
2 changed files with 7 additions and 1 deletions

View File

@ -72,7 +72,11 @@ public class Sizer implements MessageConsumer {
} catch (InterruptedException intExc) { }
}
} catch (Exception e) {
exception = new RunnerException(e.toString());
// The default Throwable.toString() never returns null, but apparently
// some sub-class has overridden it to do so, thus we need to check for
// it. See: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1166589459
exception = new RunnerException(
(e.toString() == null) ? e.getClass().getName() : e.toString());
}
if (exception != null)