Changeset 5115

Show
Ignore:
Timestamp:
10/21/08 18:15:59 (9 months ago)
Author:
jwage
Message:

[1.0, 1.1] fixes #1591

Location:
branches
Files:
2 modified

Legend:

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

    r4869 r5115  
    526526        $key = (string) $key; 
    527527        if ( ! isset($this->_connections[$key])) { 
    528             throw new InvalidKeyException(); 
     528            throw new Doctrine_Connection_Exception("Connection key '$key' does not exist."); 
    529529        } 
    530530        $this->_currIndex = $key; 
  • branches/1.1/lib/Doctrine/Manager.php

    r5030 r5115  
    529529        $key = (string) $key; 
    530530        if ( ! isset($this->_connections[$key])) { 
    531             throw new InvalidKeyException(); 
     531            throw new Doctrine_Manager_Exception("Connection key '$key' does not exist."); 
    532532        } 
    533533        $this->_currIndex = $key;