Skip to content

Commit

Permalink
Made the exception message more useful
Browse files Browse the repository at this point in the history
  • Loading branch information
archwisp committed Jun 30, 2011
1 parent 73ea97a commit c3de53a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dbms/Record/Mapper/Abstract.php
Expand Up @@ -674,8 +674,8 @@ protected function validateModelClass(
if (!$model instanceof $expected_model_class)
{
throw new InvalidArgumentException(
sprintf('Expected instance of (%s), instance of (%s) given',
$expected_model_class, get_class($model)));
sprintf('Expected instance of (%s), instance of (%s) given in %s',
$expected_model_class, get_class($model), get_class($this)));
}
}

Expand Down

0 comments on commit c3de53a

Please sign in to comment.