Show
Ignore:
Timestamp:
05/13/2008 02:23:53 AM (6 months ago)
Author:
Geert
Message:

Follow-up to r2628. Using generic i18n messages for loading of drivers.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/libraries/Database.php

    r2593 r2667  
    179179                // Load the driver 
    180180                if ( ! Kohana::auto_load($driver)) 
    181                         throw new Kohana_Database_Exception('database.driver_not_supported', $this->config['connection']['type']); 
     181                        throw new Kohana_Database_Exception('core.driver_not_found', $this->config['connection']['type'], get_class($this)); 
    182182 
    183183                // Initialize the driver 
     
    186186                // Validate the driver 
    187187                if ( ! ($this->driver instanceof Database_Driver)) 
    188                         throw new Kohana_Database_Exception('database.driver_not_supported', 'Database drivers must use the Database_Driver interface.'); 
     188                        throw new Kohana_Database_Exception('core.driver_implements', $this->config['connection']['type'], get_class($this), 'Database_Driver'); 
    189189 
    190190                Log::add('debug', 'Database Library initialized');