Skip to content

Commit

Permalink
Merge cbbc606 into fef945f
Browse files Browse the repository at this point in the history
  • Loading branch information
notEthan committed May 22, 2019
2 parents fef945f + cbbc606 commit 6fc79d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/scorpio/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def body
if body_object.respond_to?(:to_str)
body_object
else
raise(NotImplementedError)
raise(NotImplementedError, "Scorpio does not know how to generate the request body with media_type = #{media_type.respond_to?(:to_str) ? media_type : media_type.inspect} for operation: #{operation.human_id}. Scorpio supports media types: #{SUPPORTED_REQUEST_MEDIA_TYPES.join(', ')}. body_object was: #{body_object.pretty_inspect.chomp}")
end
end
else
Expand Down
2 changes: 1 addition & 1 deletion lib/scorpio/resource_base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def tag_name

def tag_name=(tag_name)
unless tag_name.respond_to?(:to_str)
raise(TypeError)
raise(TypeError, "tag_name must be a string; got: #{tag_name.inspect}")
end
set_on_class = self
tag_name = tag_name.to_str
Expand Down

0 comments on commit 6fc79d8

Please sign in to comment.