8000 fix `inform` in build script when non-string value is returned from b… · Arduino-CI/arduino_ci@8b5b424 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8b5b424

Browse files
committed
fix inform in build script when non-string value is returned from block
1 parent 521ee46 commit 8b5b424

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1616

1717
### Fixed
1818
- Test file `int main(){}` needed a CPP extension in order to properly compile
19+
- Fixed build script reporting for `inform()` when it returns a non-string value from its block
1920

2021
### Security
2122

exe/arduino_ci_remote.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def perform_action(message, multiline, mark_fn, on_fail_msg, abort_on_fail)
3636
mark = mark_fn.nil? ? "" : mark_fn.call(result)
3737
# if multline, put checkmark at full width
3838
print endline if multiline
39-
puts mark.rjust(WIDTH - line.length, " ")
39+
puts mark.to_s.rjust(WIDTH - line.length, " ")
4040
unless result
4141
puts on_fail_msg unless on_fail_msg.nil?
4242
@failure_count += 1

0 commit comments

Comments
 (0)
0