1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix an error message to replace http with https in a reference URL

This commit is contained in:
Takayuki Nakata 2019-09-02 10:02:29 +09:00
parent f5943abcd0
commit 1cc1c085e8

View file

@ -54,7 +54,7 @@ module ActiveRecord
data = YAML.load(render(IO.read(@file))) data = YAML.load(render(IO.read(@file)))
data ? validate(data).to_a : [] data ? validate(data).to_a : []
rescue ArgumentError, Psych::SyntaxError => error rescue ArgumentError, Psych::SyntaxError => error
raise Fixture::FormatError, "a YAML error occurred parsing #{@file}. Please note that YAML must be consistently indented using spaces. Tabs are not allowed. Please have a look at http://www.yaml.org/faq.html\nThe exact error was:\n #{error.class}: #{error}", error.backtrace raise Fixture::FormatError, "a YAML error occurred parsing #{@file}. Please note that YAML must be consistently indented using spaces. Tabs are not allowed. Please have a look at https://www.yaml.org/faq.html\nThe exact error was:\n #{error.class}: #{error}", error.backtrace
end end
end end