From 8d995d73f318979f5b47fa33a186b6da30d60cb9 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Mon, 7 Mar 2016 19:26:32 +0100 Subject: [PATCH] Show board name on generic "Error compiling" message Close #4658 --- arduino-core/src/cc/arduino/Compiler.java | 2 +- build/shared/revisions.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arduino-core/src/cc/arduino/Compiler.java b/arduino-core/src/cc/arduino/Compiler.java index bb815575c..6201c9493 100644 --- a/arduino-core/src/cc/arduino/Compiler.java +++ b/arduino-core/src/cc/arduino/Compiler.java @@ -269,7 +269,7 @@ public class Compiler implements MessageConsumer { } if (result != 0) { - RunnerException re = new RunnerException(tr("Error compiling.")); + RunnerException re = new RunnerException(I18n.format(tr("Error compiling for board {0}."), board.getName())); re.hideStackTrace(); throw re; } diff --git a/build/shared/revisions.txt b/build/shared/revisions.txt index 8aab165ae..d5ff890a8 100644 --- a/build/shared/revisions.txt +++ b/build/shared/revisions.txt @@ -14,6 +14,7 @@ ARDUINO 1.6.8 * Improved sketch preprocessor when handling C++11 keywords. Thanks @matthijskooijman @igrr * Updates to keyword pigmentation to match Create * Fixed display of LITERAL1 keywords +* Added target board information when "Error compiling" message is displayed. Thanks @PaulStoffregen [core] * avr: fixed USB_SendControl(...) for buffer with len > 64. Thanks @NicoHood