<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -46,9 +46,11 @@ module FriendlyId::SluggableClassMethods
 
     if friendly_id_options[:scope]
       if !scope
-        e.message &lt;&lt; &quot;; expected scope but got none&quot;
+        raise ActiveRecord::RecordNotFound.new(&quot;%s; expected scope but got none&quot; % e.message)
+        # e.message &lt;&lt; &quot;; expected scope but got none&quot;
       else
-        e.message &lt;&lt; &quot; and scope=#{scope}&quot;
+        raise ActiveRecord::RecordNotFound.new(&quot;%s and scope=#{scope}&quot; % e.message)
+        # e.message &lt;&lt; &quot; and scope=#{scope}&quot;
       end
     end
 </diff>
      <filename>lib/friendly_id/sluggable_class_methods.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>2161a49288f717b0515ad0c826f6610f86ac1ca9</id>
    </parent>
  </parents>
  <author>
    <name>Norman Clarke</name>
    <email>norman@eee.localdomain</email>
  </author>
  <url>http://github.com/kakra/friendly_id/commit/fb8db2603ca7da81aba0420d952a948a4a8e19d8</url>
  <id>fb8db2603ca7da81aba0420d952a948a4a8e19d8</id>
  <committed-date>2009-10-07T10:56:16-07:00</committed-date>
  <authored-date>2009-10-06T12:23:10-07:00</authored-date>
  <message>Raise a new ActiveRecord::RecordNotFound rather than append to the error's message'; 1.9.1 freezes exception messages.</message>
  <tree>dbd8f43e62b92e3e654b2b9a3779d173f32ac447</tree>
  <committer>
    <name>Norman Clarke</name>
    <email>norman@eee.localdomain</email>
  </committer>
</commit>
