GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Fork of rails/rails
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/ddollar/rails.git
Fixed that Yaml error message in fixtures hid the real error #1623 
[Nicholas Seckar]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1734 
5ecf4fe2-1ee6-0310-87b1-e25e094e27de
dhh (author)
Wed Jul 06 03:16:38 -0700 2005
commit  169eb781f1e1440bf8196a50d6b113a82707ed43
tree    c8ed6de1d4ec680d7299d2ba71f0e2deb0e8bf69
parent  17f7f8a091657a2192106668f00e74c6d70c0614
...
1
2
 
 
3
4
5
...
1
2
3
4
5
6
7
0
@@ -1,5 +1,7 @@
0
 *1.11.0* (5th July, 2005)
0
 
0
+* Fixed that Yaml error message in fixtures hid the real error #1623 [Nicholas Seckar]
0
+
0
 * Changed logging of SQL statements to use the DEBUG level instead of INFO
0
 
0
 * Added new Migrations framework for describing schema transformations in a way that can be easily applied across multiple databases #1604 [Tobias Luetke] See documentation under ActiveRecord::Migration and the additional support in the Rails rakefile/generator.
...
288
289
290
291
 
292
293
294
...
288
289
290
 
291
292
293
294
0
@@ -288,7 +288,7 @@ class Fixtures < Hash
0
           yaml = YAML::load(erb_render(IO.read(yaml_file_path)))
0
           yaml.each { |name, data| self[name] = Fixture.new(data, @class_name) } if yaml
0
         rescue Exception=>boom
0
- raise Fixture::FormatError, "a YAML error occured parsing #{yaml_file_path}. 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"
0
+ raise Fixture::FormatError, "a YAML error occured parsing #{yaml_file_path}. 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 #{boom.class}: #{boom}"
0
         end
0
       elsif File.file?(csv_file_path)
0
         # CSV fixtures

Comments

    No one has commented yet.