From 46a15cf857cc29cb27075783f1ff29b568be5ba4 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 21 Jul 2011 08:39:36 -0700 Subject: [PATCH] Add more detail to pagination exception message. --- system/db/eloquent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/db/eloquent.php b/system/db/eloquent.php index a2273afe..d4a1a64f 100644 --- a/system/db/eloquent.php +++ b/system/db/eloquent.php @@ -194,7 +194,7 @@ abstract class Eloquent { { 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;