Permalink
Browse files

Use slightly better error message when unable to find Sequel::Model i…

…nstance
  • Loading branch information...
1 parent 1f23cdb commit 2c2a6f3c45723e9ba6709cb739a770c6bf46bc73 @jeremyevans committed Jun 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/fixture_dependencies/sequel.rb
@@ -10,7 +10,7 @@ def add_associated_object_S(reflection, attr, object, assoc)
end
def model_find_S(model, pk)
- model[pk] || raise(Sequel::Error)
+ model[pk] || raise_model_error_S("No matching record for #{model.name}[#{pk.inspect}]")
end
def model_find_by_pk_S(model, pk)

0 comments on commit 2c2a6f3

Please sign in to comment.