Skip to content

Commit

Permalink
FIX SQLSRV driver unhandled exception
Browse files Browse the repository at this point in the history
as reported @JeremyLC  #5890

now should be handled
  • Loading branch information
alikon committed Jun 14, 2015
1 parent 3ba9e64 commit 96cbb46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/joomla/database/driver/sqlsrv.php
Expand Up @@ -712,7 +712,7 @@ public function execute()

// Throw the normal query exception.
JLog::add(JText::sprintf('JLIB_DATABASE_QUERY_FAILED', $this->errorNum, $this->errorMsg), JLog::ERROR, 'databasequery');
throw new RuntimeException($this->errorMsg, $this->errorNum);
throw new Exception($this->errorMsg, $this->errorNum);
}
}

Expand Down

0 comments on commit 96cbb46

Please sign in to comment.