<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1829,7 +1829,7 @@ module ActiveRecord #:nodoc:
                   else
                     find(:#{finder}, options.merge(finder_options))
                   end
-                  #{'result || raise(RecordNotFound)' if bang}
+                  #{'result || raise(RecordNotFound, &quot;Couldn\'t find #{name} with #{attributes.to_a.collect {|pair| &quot;#{pair.first} = #{pair.second}&quot;}.join(\', \')}&quot;)' if bang}
                 end
               }, __FILE__, __LINE__
               send(method_id, *arguments)</diff>
      <filename>activerecord/lib/active_record/base.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a9fde9a2abd6a6505d5fd197ad9640470d8df9be</id>
    </parent>
  </parents>
  <author>
    <name>Frederick Cheung</name>
    <email>frederick.cheung@gmail.com</email>
  </author>
  <url>http://github.com/rails/rails/commit/428e77bf0fcee4369cb8d94011141f791b8e2ba9</url>
  <id>428e77bf0fcee4369cb8d94011141f791b8e2ba9</id>
  <committed-date>2008-12-18T11:19:35-08:00</committed-date>
  <authored-date>2008-12-17T15:37:55-08:00</authored-date>
  <message>Make exceptions raise from find_by_foo! have a more helpful message [#1567 state:resolved]</message>
  <tree>86b37e8e7b7b75b8dec2afe0bbcbc5b0a5b8045c</tree>
  <committer>
    <name>Pratik Naik</name>
    <email>pratiknaik@gmail.com</email>
  </committer>
</commit>
