Skip to content

Commit

Permalink
Include body.class feedback for non-String body error (#756)
Browse files Browse the repository at this point in the history
Resolves #748
  • Loading branch information
aploshay authored and olleolleolle committed Dec 17, 2019
1 parent 5a85510 commit 4fe5149
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vcr/structs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def initialize(*args)
super

if body && !body.is_a?(String)
raise ArgumentError, "#{self.class} initialized with an invalid body: #{body.inspect}."
raise ArgumentError, "#{self.class} initialized with an invalid (non-String) body of class #{body.class}: #{body.inspect}."
end

# Ensure that the body is a raw string, in case the string instance
Expand Down

0 comments on commit 4fe5149

Please sign in to comment.