Skip to content

Commit

Permalink
provide exception class nad message as arguments to raise
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
okuzawats and github-actions[bot] authored Aug 8, 2024
1 parent 137a0e0 commit 1640491
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@
if response.code == '200'
puts response.body
else
raise StandardError.new("action failed! #{response.body}")
raise StandardError, "action failed! #{response.body}"
end

0 comments on commit 1640491

Please sign in to comment.