Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
fix db connection error message
Browse files Browse the repository at this point in the history
  • Loading branch information
wellingguzman committed Mar 28, 2018
1 parent 2e6fbe9 commit c5a707e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ class ConnectionFailedException extends ErrorException

public function __construct(Throwable $previous = null)
{
$message = 'Failed to connect to the database: ';
$message = 'Failed to connect to the database';

if ($previous) {
$message .= $previous->getMessage();
$message .= ': ' . $previous->getMessage();
}

parent::__construct($message, static::ERROR_CODE, $previous);
Expand Down

0 comments on commit c5a707e

Please sign in to comment.