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/Payment.php

    r2209 r2667  
    7575                // Load the driver 
    7676                if ( ! Kohana::auto_load($driver)) 
    77                         throw new Kohana_Exception('payment.driver_not_supported', $this->config['driver']); 
     77                        throw new Kohana_Exception('core.driver_not_found', $this->config['driver'], get_class($this)); 
    7878 
    7979                // Get the driver specific settings 
     
    8585                // Validate the driver 
    8686                if ( ! ($this->driver instanceof Payment_Driver)) 
    87                         throw new Kohana_Exception('payment.driver_implements', $this->config['driver']); 
     87                        throw new Kohana_Exception('core.driver_implements', $this->config['driver'], get_class($this), 'Payment_Driver'); 
    8888        } 
    8989