[Solar-svn] Revision 3119

pmjones at solarphp.com pmjones at solarphp.com
Mon Apr 14 20:23:24 CDT 2008


Solar_Struct: [CHG] When reporting "no such key", now gives the class name and the list of available keys.


Modified: trunk/Solar/Struct.php
===================================================================
--- trunk/Solar/Struct.php	2008-04-14 20:47:15 UTC (rev 3118)
+++ trunk/Solar/Struct.php	2008-04-15 01:23:21 UTC (rev 3119)
@@ -141,7 +141,9 @@
             return $this->_data[$key];
         } else {
             throw $this->_exception('ERR_NO_SUCH_KEY', array(
-                'key' => $key,
+                'class' => get_class($this),
+                'key'   => $key,
+                'keys'  => array_keys($this->_data),
             ));
         }
     }




More information about the Solar-svn mailing list