From 1cc1c085e8da5810c00ea866ff666442fa464cf7 Mon Sep 17 00:00:00 2001 From: Takayuki Nakata Date: Mon, 2 Sep 2019 10:02:29 +0900 Subject: [PATCH] Fix an error message to replace http with https in a reference URL --- activerecord/lib/active_record/fixture_set/file.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activerecord/lib/active_record/fixture_set/file.rb b/activerecord/lib/active_record/fixture_set/file.rb index b2030a5bb9..da5451fc7c 100644 --- a/activerecord/lib/active_record/fixture_set/file.rb +++ b/activerecord/lib/active_record/fixture_set/file.rb @@ -54,7 +54,7 @@ module ActiveRecord data = YAML.load(render(IO.read(@file))) data ? validate(data).to_a : [] 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