From 5b64cebdc581972c8d9e2ff8269ab46a0d2703c6 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Thu, 22 Oct 2015 15:27:12 -0700 Subject: [PATCH] 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. --- arduino-core/src/cc/arduino/Compiler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arduino-core/src/cc/arduino/Compiler.java b/arduino-core/src/cc/arduino/Compiler.java index 0280a8a2d5b..d5940ad70db 100644 --- a/arduino-core/src/cc/arduino/Compiler.java +++ b/arduino-core/src/cc/arduino/Compiler.java @@ -549,12 +549,12 @@ public void message(String s) { } 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 '?"); //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 '?"); //msg = _("\nThe 'Keyboard' class is only supported on the Arduino Leonardo.\n\n"); }