mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-18 07:52:14 +01:00
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.
This commit is contained in:
parent
727b0bbd85
commit
5b64cebdc5
@ -549,12 +549,12 @@ public class Compiler implements MessageConsumer {
|
||||
}
|
||||
|
||||
if (error.trim().equals("'Mouse' was not declared in this scope")) {
|
||||
error = tr("'Mouse' only supported on the Arduino Leonardo");
|
||||
error = tr("'Mouse' not found. Does your sketch include the line '#include <Mouse.h>'?");
|
||||
//msg = _("\nThe 'Mouse' class is only supported on the Arduino Leonardo.\n\n");
|
||||
}
|
||||
|
||||
if (error.trim().equals("'Keyboard' was not declared in this scope")) {
|
||||
error = tr("'Keyboard' only supported on the Arduino Leonardo");
|
||||
error = tr("'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?");
|
||||
//msg = _("\nThe 'Keyboard' class is only supported on the Arduino Leonardo.\n\n");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user