Skip to content

Commit

Permalink
Add error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidBiddle committed Dec 5, 2023
1 parent 253fe03 commit 275e750
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/tasks/what_happens_next_markdown.rake
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ namespace :what_happens_next_markdown do
end

form.save!
rescue StandardError => e
puts "Error processing form #{form.id} (#{form.name})"
puts e
end
end

Expand All @@ -54,6 +57,9 @@ namespace :what_happens_next_markdown do
end

form.save!
rescue StandardError => e
puts "Error processing form #{form.id} (#{form.name})"
puts e
end
end
end

0 comments on commit 275e750

Please sign in to comment.