mirror of
https://github.com/esp8266/Arduino.git
synced 2025-08-01 03:47:23 +03:00
Trapping NumberFormatExceptionsgenerated by unusual error messages from the C compiler.
This commit is contained in:
@ -534,7 +534,13 @@ public class Compiler implements MessageConsumer {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
int lineNumber = Integer.parseInt(s1.substring(0, colon));
|
int lineNumber;
|
||||||
|
try {
|
||||||
|
lineNumber = Integer.parseInt(s1.substring(0, colon));
|
||||||
|
} catch (NumberFormatException e) {
|
||||||
|
System.err.print(s1);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// the "1" corresponds to the amount of lines written to the main code
|
// the "1" corresponds to the amount of lines written to the main code
|
||||||
// file by PdePreprocessor's writeHeader() routine before prototypes
|
// file by PdePreprocessor's writeHeader() routine before prototypes
|
||||||
|
Reference in New Issue
Block a user