lib/vcr/http_stubbing_adapters/common.rb in vcr-1.3.2 vs lib/vcr/http_stubbing_adapters/common.rb in vcr-1.3.3

- old
+ new

@@ -8,11 +8,11 @@ class UnsupportedRequestMatchAttributeError < ArgumentError; end module Common def self.add_vcr_info_to_exception_message(exception_klass) exception_klass.class_eval do - def message - super + ". " + VCR::HttpStubbingAdapters::Common::RECORDING_INSTRUCTIONS + def initialize(message) + super(message + '. ' + VCR::HttpStubbingAdapters::Common::RECORDING_INSTRUCTIONS) end end end RECORDING_INSTRUCTIONS = "You can use VCR to automatically record this request and replay it later. " +