Skip to content

Commit

Permalink
Wrap rescue inside :clean inside begin/end block
Browse files Browse the repository at this point in the history
As per code review, @jnavila reported an error that requires begin/end
block for multiline rescue body.

Signed-off-by: Bagas Sanjaya <[email protected]>
  • Loading branch information
bagasme committed Feb 7, 2021
1 parent 41b3420 commit 15579fe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,10 @@ namespace :book do

# Rescue if file not found
rescue Errno::ENOENT => e
puts e.message
puts "Error removing files (ignored)"
begin
puts e.message
puts "Error removing files (ignored)"
end
end
end
end
Expand Down

0 comments on commit 15579fe

Please sign in to comment.