Changeset 4604
- Timestamp:
- 07/10/06 19:41:59 (2 years ago)
- Files:
-
- trunk/activerecord/lib/active_record/base.rb (modified) (1 diff)
- trunk/activerecord/lib/active_record/fixtures.rb (modified) (1 diff)
- trunk/activesupport/lib/active_support/dependencies.rb (modified) (1 diff)
- trunk/activesupport/lib/active_support/whiny_nil.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/activerecord/lib/active_record/base.rb
r4596 r4604 1849 1849 self.class.read_methods.delete(attr_name) 1850 1850 if logger 1851 logger.warn "Exception occur ed during reader method compilation."1851 logger.warn "Exception occurred during reader method compilation." 1852 1852 logger.warn "Maybe #{attr_name} is not a valid Ruby identifier?" 1853 1853 logger.warn "#{err.message}" trunk/activerecord/lib/active_record/fixtures.rb
r4603 r4604 309 309 end 310 310 rescue Exception=>boom 311 raise Fixture::FormatError, "a YAML error occur ed 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}"311 raise Fixture::FormatError, "a YAML error occurred 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}" 312 312 end 313 313 elsif File.file?(csv_file_path) trunk/activesupport/lib/active_support/dependencies.rb
r4136 r4604 164 164 def describe_blame 165 165 return nil if blamed_files.empty? 166 "This error occur ed while loading the following files:\n #{blamed_files.join "\n "}"166 "This error occurred while loading the following files:\n #{blamed_files.join "\n "}" 167 167 end 168 168 trunk/activesupport/lib/active_support/whiny_nil.rb
r2602 r4604 31 31 message = "You have a nil object when you didn't expect it!" 32 32 message << "\nYou might have expected an instance of #{klass}." if klass 33 message << "\nThe error occur ed while evaluating nil.#{selector}" if selector33 message << "\nThe error occurred while evaluating nil.#{selector}" if selector 34 34 35 35 raise NoMethodError, message, with_caller || caller