Skip to content

Commit c96718b

Browse files
committed
Upcase request method in exception messages to improve readability
1 parent cc48a65 commit c96718b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/openapi_first/router/find_response.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module FindResponse
1111
def self.call(responses, status, content_type, request_method:, path:)
1212
contents = find_status(responses, status)
1313
if contents.nil?
14-
message = "Status #{status} is not defined for #{request_method} #{path}. " \
14+
message = "Status #{status} is not defined for #{request_method.upcase} #{path}. " \
1515
"Defined statuses are: #{responses.keys.join(', ')}."
1616
return Match.new(error: Failure.new(:response_not_found, message:), response: nil)
1717
end

0 commit comments

Comments
 (0)