File tree 2 files changed +6
-1
lines changed 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
11
11
- Minimal Wire mocks. Will not provide support for unit testing I2C communication yet, but will allow compilation of libraries that use I2C.
12
12
13
13
### Changed
14
+ - Arduino command failures (to read preferences) now causes a fatal error, with help for troubleshooting the underlying command
14
15
15
16
### Deprecated
16
17
Original file line number Diff line number Diff line change 6
6
7
7
module ArduinoCI
8
8
9
+ # To report errors that we can't resolve or possibly even explain
10
+ class ArduinoExecutionError < StandardError ; end
11
+
9
12
# Wrap the Arduino executable. This requires, in some cases, a faked display.
10
13
class ArduinoCmd
11
14
@@ -82,7 +85,8 @@ def lib_dir
82
85
# @return [String] Preferences as a set of lines
83
86
def _prefs_raw
84
87
resp = run_and_capture ( flag_get_pref )
85
- return nil unless resp [ :success ]
88
+ fail_msg = "Arduino binary failed to operate as expected; you will have to troubleshoot it manually"
89
+ raise ArduinoExecutionError , "#{ fail_msg } . The command was #{ @last_msg } " unless resp [ :success ]
86
90
87
91
@prefs_fetched = true
88
92
resp [ :out ]
You can’t perform that action at this time.
0 commit comments