Skip to content

Commit 9788663

Browse files
authored
fix: Avoid error in error message (piotrmurach#362)
1 parent be47c34 commit 9788663

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/github_api/request.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def initialize(action, path, api)
5151
# @api private
5252
def call(current_options, params)
5353
unless HTTP_METHODS.include?(action)
54-
raise ArgumentError, "unknown http method: #{method}"
54+
raise ArgumentError, "unknown http method: #{action}"
5555
end
5656

5757
puts "EXECUTED: #{action} - #{path} with PARAMS: #{params.request_params}" if ENV['DEBUG']

0 commit comments

Comments
 (0)