Skip to content

Commit 5b64ceb

Browse files
committed
Simplify and clarify new HID error messages.
The libraries in question are supported on a number of official Arduino boards. The new error message tries to be a bit more helpful.
1 parent 727b0bb commit 5b64ceb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arduino-core/src/cc/arduino/Compiler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -549,12 +549,12 @@ public void message(String s) {
549549
}
550550

551551
if (error.trim().equals("'Mouse' was not declared in this scope")) {
552-
error = tr("'Mouse' only supported on the Arduino Leonardo");
552+
error = tr("'Mouse' not found. Does your sketch include the line '#include <Mouse.h>'?");
553553
//msg = _("\nThe 'Mouse' class is only supported on the Arduino Leonardo.\n\n");
554554
}
555555

556556
if (error.trim().equals("'Keyboard' was not declared in this scope")) {
557-
error = tr("'Keyboard' only supported on the Arduino Leonardo");
557+
error = tr("'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?");
558558
//msg = _("\nThe 'Keyboard' class is only supported on the Arduino Leonardo.\n\n");
559559
}
560560

0 commit comments

Comments
 (0)