File tree 2 files changed +10
-15
lines changed
arduino-core/src/cc/arduino/packages/uploaders
2 files changed +10
-15
lines changed Original file line number Diff line number Diff line change @@ -2573,7 +2573,8 @@ public void run() {
2573
2573
statusError (I18n .format (
2574
2574
_ ("Error while burning bootloader: missing '{0}' configuration parameter" ),
2575
2575
e .getMessage ()));
2576
- //statusError(e);
2576
+ } catch (RunnerException e ) {
2577
+ statusError (e .getMessage ());
2577
2578
} catch (Exception e ) {
2578
2579
statusError (_ ("Error while burning bootloader." ));
2579
2580
e .printStackTrace ();
Original file line number Diff line number Diff line change @@ -322,19 +322,13 @@ public boolean burnBootloader() throws Exception {
322
322
prefs .put ("bootloader.verbose" , prefs .getOrExcept ("bootloader.params.quiet" ));
323
323
}
324
324
325
- try {
326
- String pattern = prefs .getOrExcept ("erase.pattern" );
327
- String [] cmd = StringReplacer .formatAndSplit (pattern , prefs , true );
328
- if (!executeUploadCommand (cmd ))
329
- return false ;
330
-
331
- pattern = prefs .getOrExcept ("bootloader.pattern" );
332
- cmd = StringReplacer .formatAndSplit (pattern , prefs , true );
333
- return executeUploadCommand (cmd );
334
- } catch (RunnerException e ) {
335
- throw e ;
336
- } catch (Exception e ) {
337
- throw new RunnerException (e );
338
- }
325
+ String pattern = prefs .getOrExcept ("erase.pattern" );
326
+ String [] cmd = StringReplacer .formatAndSplit (pattern , prefs , true );
327
+ if (!executeUploadCommand (cmd ))
328
+ return false ;
329
+
330
+ pattern = prefs .getOrExcept ("bootloader.pattern" );
331
+ cmd = StringReplacer .formatAndSplit (pattern , prefs , true );
332
+ return executeUploadCommand (cmd );
339
333
}
340
334
}
You can’t perform that action at this time.
0 commit comments