File tree 2 files changed +13
-7
lines changed
2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
23
23
- Library installation no longer "fails" if the library is already installed
24
24
- Platform definition for ` mega2560 ` now includes proper AVR compiler flag
25
25
- ` CppLibrary::vendor_bundle? ` now asks where gems are, instead of assuming ` vendor/bundle/ `
26
+ - ` install_local_library ` step in ` arduino_ci_remote.rb ` now properly surfaces any error message
26
27
27
28
### Security
28
29
Original file line number Diff line number Diff line change @@ -248,17 +248,22 @@ def perform_compilation_tests(config)
248
248
installed_library_path = attempt ( "Installing library under test" ) do
249
249
@arduino_cmd . install_local_library ( Pathname . new ( "." ) )
250
250
end
251
- if installed_library_path . exist?
251
+
252
+ if !installed_library_path . nil? && installed_library_path . exist?
252
253
inform ( "Library installed at" ) { installed_library_path . to_s }
253
254
else
254
255
assure_multiline ( "Library installed successfully" ) do
255
- # print out the contents of the deepest directory we actually find
256
- @arduino_cmd . lib_dir . ascend do |path_part |
257
- next unless path_part . exist?
258
-
259
- break display_files ( path_part )
256
+ if installed_library_path . nil?
257
+ puts @arduino_cmd . last_msg
258
+ else
259
+ # print out the contents of the deepest directory we actually find
260
+ @arduino_cmd . lib_dir . ascend do |path_part |
261
+ next unless path_part . exist?
262
+
263
+ break display_files ( path_part )
264
+ end
265
+ false
260
266
end
261
- false
262
267
end
263
268
end
264
269
library_examples = @arduino_cmd . library_examples ( installed_library_path )
You can’t perform that action at this time.
0 commit comments