Skip to content

Commit 68c1e30

Browse files
author
jantje
committed
#814 added a error message
However in this specific situation the error message would not have been really helpfull. I think the digistump programmers would not work on arduino
1 parent 38c5309 commit 68c1e30

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

io.sloeber.core/src/io/sloeber/core/api/BoardDescriptor.java

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -905,8 +905,13 @@ public String getUploadCommand(ICConfigurationDescription confdesc) {
905905
if (usesProgrammer()) {
906906
action = "PROGRAM";
907907
}
908-
return Common.getBuildEnvironmentVariable(confdesc,
909-
"A.TOOLS." + upLoadTool.toUpperCase() + "." + action + ".PATTERN", upLoadTool.toUpperCase());
908+
String ret = Common.getBuildEnvironmentVariable(confdesc,
909+
"A.TOOLS." + upLoadTool.toUpperCase() + "." + action + ".PATTERN", "");
910+
if (ret.isEmpty()) {
911+
Common.log(new Status(IStatus.ERROR, Const.CORE_PLUGIN_ID, "tools." + upLoadTool + "."
912+
+ action.toLowerCase() + ".pattern : not found in the platform.txt file"));
913+
}
914+
return ret;
910915
}
911916

912917
public String getActualUploadTool(ICConfigurationDescription confdesc) {
@@ -916,7 +921,7 @@ public String getActualUploadTool(ICConfigurationDescription confdesc) {
916921
}
917922
if (usesProgrammer()) {
918923
return Common.getBuildEnvironmentVariable(confdesc, "A.PROGRAM.TOOL",
919-
"Program tool not properly configured");
924+
"Program tool not properly configured");
920925
}
921926
if (this.myUploadTool == null) {
922927
return Common.getBuildEnvironmentVariable(confdesc, "A.UPLOAD.TOOL", "upload tool not properly configured");

0 commit comments

Comments
 (0)