Skip to content

Commit

Permalink
Use slightly better error message when unable to find Sequel::Model i…
Browse files Browse the repository at this point in the history
…nstance
  • Loading branch information
jeremyevans committed Jun 4, 2012
1 parent 1f23cdb commit 2c2a6f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fixture_dependencies/sequel.rb
Expand Up @@ -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)
Expand Down

0 comments on commit 2c2a6f3

Please sign in to comment.