1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00

IDE: better error handling for upload/burn bootloader

RunnerException was displayed with an ugly stacktrace, while the
message contained in the exception itself is already quite enough
detailed and clear.
This commit is contained in:
Cristian Maglie
2014-11-20 14:00:43 +01:00
parent 85aecfe0da
commit 257238c050
2 changed files with 9 additions and 14 deletions

View File

@ -2573,7 +2573,8 @@ public class Editor extends JFrame implements RunnerListener {
statusError(I18n.format(
_("Error while burning bootloader: missing '{0}' configuration parameter"),
e.getMessage()));
//statusError(e);
} catch (RunnerException e) {
statusError(e.getMessage());
} catch (Exception e) {
statusError(_("Error while burning bootloader."));
e.printStackTrace();