lib/json_matchers/matcher.rb in json_matchers-0.5.0 vs lib/json_matchers/matcher.rb in json_matchers-0.5.1
- old
+ new
@@ -16,10 +16,10 @@
options,
)
rescue JSON::Schema::ValidationError => ex
@validation_failure_message = ex.message
false
- rescue JSON::ParserError
+ rescue JSON::Schema::JsonParseError
raise InvalidSchemaError
end
def validation_failure_message
@validation_failure_message.to_s