1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-08-01 03:47:23 +03:00

Providing error messages when no board is selected.

This commit is contained in:
David A. Mellis
2010-06-12 18:32:32 +00:00
parent 0979ed050b
commit 9fe672fc63
3 changed files with 15 additions and 2 deletions

View File

@ -73,6 +73,11 @@ public class Compiler implements MessageConsumer {
String avrBasePath = Base.getAvrBasePath();
Map<String, String> boardPreferences = Base.getBoardPreferences();
String core = boardPreferences.get("build.core");
if (core == null) {
RunnerException re = new RunnerException("No board selected; please choose a board from the Tools > Board menu.");
re.hideStackTrace();
throw re;
}
String corePath;
if (core.indexOf(':') == -1) {