Skip to content

Commit 0f57794

Browse files
authored
Merge pull request #649 from Geolim4/master
Fixed #647
2 parents e11e864 + 953da36 commit 0f57794

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/Phpfastcache/Drivers/Predis/Driver.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,11 @@ protected function driverConnect(): bool
9191
try {
9292
$this->instance->connect();
9393
} catch (PredisConnectionException $e) {
94-
echo $e->getMessage();
95-
throw new PhpfastcacheDriverException('Failed to connect to predis server. Check the Predis documentation: https://github.com/nrk/predis/tree/v1.1#how-to-install-and-use-predis',
96-
0, $e);
94+
throw new PhpfastcacheDriverException(
95+
'Failed to connect to predis server. Check the Predis documentation: https://github.com/nrk/predis/tree/v1.1#how-to-install-and-use-predis',
96+
0,
97+
$e
98+
);
9799
}
98100

99101
return true;

0 commit comments

Comments
 (0)