Compare commits

...
1 Commits
Author SHA1 Message Date
Barry vd. Heuvel eda37f3442 Catch PDO errors when getting drivers/connections 2013-07-12 14:39:12 +02:00
@@ -224,6 +224,7 @@ exit('Only to be used as an helper for your IDE');\n\n";
}
public function getDriver($alias){
try{
if($alias == "Auth"){
$driver = \Auth::driver();
}elseif($alias == "DB"){
@@ -237,6 +238,10 @@ exit('Only to be used as an helper for your IDE');\n\n";
}
return get_class($driver);
}catch(\Exception $e){
$this->error("Could not determine driver/connection for $alias.");
return false;
}
}
/**