Add more detail to pagination exception message.

This commit is contained in:
Taylor Otwell 2011-07-21 08:39:36 -07:00
parent b7ab358297
commit 46a15cf857
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ private function _paginate($per_page = null)
{
if ( ! property_exists(get_class($this), 'per_page'))
{
throw new \Exception("The number of models to display per page has not been specified.");
throw new \Exception("The number of models to display per page for model [".get_class($this)."] has not been specified.");
}
$per_page = static::$per_page;