From 1640491728c8c9e68c749505a97fbc03949c3de7 Mon Sep 17 00:00:00 2001 From: okuzawats Date: Thu, 8 Aug 2024 13:26:57 +0900 Subject: [PATCH] provide exception class nad message as arguments to raise Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- main.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.rb b/main.rb index dffec51..c21bb8b 100644 --- a/main.rb +++ b/main.rb @@ -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