mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03:00
Fixed error message if user didn't select any board
This commit is contained in:
@ -117,6 +117,14 @@ public class Compiler implements MessageConsumer {
|
|||||||
private PreferencesMap createBuildPreferences(String _buildPath,
|
private PreferencesMap createBuildPreferences(String _buildPath,
|
||||||
String _primaryClassName)
|
String _primaryClassName)
|
||||||
throws RunnerException {
|
throws RunnerException {
|
||||||
|
|
||||||
|
if (Base.getBoardPreferences() == null) {
|
||||||
|
RunnerException re = new RunnerException(
|
||||||
|
_("No board selected; please choose a board from the Tools > Board menu."));
|
||||||
|
re.hideStackTrace();
|
||||||
|
throw re;
|
||||||
|
}
|
||||||
|
|
||||||
TargetPlatform targetPlatform = Base.getTargetPlatform();
|
TargetPlatform targetPlatform = Base.getTargetPlatform();
|
||||||
|
|
||||||
// Merge all the global preference configuration in order of priority
|
// Merge all the global preference configuration in order of priority
|
||||||
@ -137,12 +145,6 @@ public class Compiler implements MessageConsumer {
|
|||||||
|
|
||||||
// Core folder
|
// Core folder
|
||||||
String core = p.get("build.core");
|
String core = p.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;
|
|
||||||
}
|
|
||||||
TargetPlatform tp;
|
TargetPlatform tp;
|
||||||
if (!core.contains(":")) {
|
if (!core.contains(":")) {
|
||||||
tp = targetPlatform;
|
tp = targetPlatform;
|
||||||
|
Reference in New Issue
Block a user