Changeset 4028

Show
Ignore:
Timestamp:
03/18/08 22:41:36 (16 months ago)
Author:
pookey
Message:

improving exception when attempting to get connetion when there is none

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/0.10/lib/Doctrine/Manager.php

    r3967 r4028  
    681681        $i = $this->_currIndex; 
    682682        if ( ! isset($this->_connections[$i])) { 
    683             throw new Doctrine_Connection_Exception(); 
     683            throw new Doctrine_Connection_Exception('There is no open connection'); 
    684684        } 
    685685        return $this->_connections[$i];