Skip to content

Commit ea92393

Browse files
author
Federico Fissore
committed
CLI: fail if selected board does not exist. Fixes #3417
1 parent 4114ef2 commit ea92393

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arduino-core/src/processing/app/helpers/CommandlineParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ private void processBoardArgument(String selectBoard) {
244244
}
245245

246246
TargetBoard targetBoard = targetPlatform.getBoard(split[2]);
247-
if (targetBoard == null) {
247+
if (targetBoard == null || !targetBoard.getId().equals(split[2])) {
248248
BaseNoGui.showError(null, I18n.format(_("{0}: Unknown board"), split[2]), 3);
249249
}
250250

0 commit comments

Comments
 (0)