Skip to content

Commit

Permalink
Capture warning in IO
Browse files Browse the repository at this point in the history
  • Loading branch information
schneems committed Nov 20, 2024
1 parent 5e07870 commit efe8893
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## HEAD

- Fix: Partial output of the document is now written to disk in a `RUNDOC_FAILED.md` file (https://github.com/zombocom/rundoc/pull/69)

## 3.0.1

- Fix: Save in-progress work in the "failure" directory when the rundoc command is interrupted via a signal such as `SIGTERM` (https://github.com/zombocom/rundoc/pull/67)
Expand Down
2 changes: 1 addition & 1 deletion lib/rundoc/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def call
output = begin
parser.to_md
rescue StandardError, SignalException => e
warn "Received exception: #{e.inspect}, cleaning up before re-raise"
io.puts "Received exception: #{e.inspect}, cleaning up before re-raise"
on_fail
raise e
end
Expand Down

0 comments on commit efe8893

Please sign in to comment.