laravel/framework — pull request #3007 by anlutro (2013-12-20 11:31:20+00:00)
Title: Only catch PDOException

QueryException expects the previous exception to be a PDOException - if it's not, the exception itself causes a fatal error because `$this->errorInfo` is not defined. If a connection statement being ran causes an exception that's not a PDOException it should probably just be passed on through the app.