aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-03-06 13:45:22 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-03-06 13:45:22 +0000
commit0ceab8114cb5d8f38d8d30136eaffdd7bff4ede1 (patch)
tree63a04fc50b92060dfc085873c428f3bebc465a83 /activerecord/lib/active_record
parent6cae2b743913bad7fc530c01f80cc6fe7ef9309d (diff)
downloadrails-0ceab8114cb5d8f38d8d30136eaffdd7bff4ede1.tar.gz
rails-0ceab8114cb5d8f38d8d30136eaffdd7bff4ede1.tar.bz2
rails-0ceab8114cb5d8f38d8d30136eaffdd7bff4ede1.zip
Better yaml fixture error #759 [xal]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@845 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib/active_record')
-rwxr-xr-xactiverecord/lib/active_record/fixtures.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/fixtures.rb b/activerecord/lib/active_record/fixtures.rb
index 5ae4bfaf30..1121b9bbb3 100755
--- a/activerecord/lib/active_record/fixtures.rb
+++ b/activerecord/lib/active_record/fixtures.rb
@@ -217,7 +217,7 @@ class Fixtures < Hash
yaml = YAML::load(erb_render(IO.read(yaml_file_path)))
yaml.each { |name, data| self[name] = Fixture.new(data, @class_name) } if yaml
rescue Exception=>boom
- raise Fixture::FormatError, "a YAML error occured parsing #{yaml_file_path}"
+ raise Fixture::FormatError, "a YAML error occured parsing #{yaml_file_path}. Please note that YAML must be indented with 2,4 or 8 spaces. Tabs are not allowed. Please have a look at http://www.yaml.org/faq.html"
end
elsif File.file?(csv_file_path)
# CSV fixtures