Module: VCR::Cassette::SyntaxErrorHandling

Instance Method Summary collapse

Instance Method Details

#handle_syntax_errorsObject



60
61
62
63
64
65
# File 'lib/vcr/cassette/serializers.rb', line 60

def handle_syntax_errors
  yield
rescue *self::SYNTAX_ERRORS => e
  e.message << "\nNote: This is a VCR cassette. If it is using ERB, you may have forgotten to pass the `:erb` option to `use_cassette`."
  raise
end