Skip to content

Commit

Permalink
Added error when can't connect
Browse files Browse the repository at this point in the history
  • Loading branch information
erikdubbelboer committed Nov 11, 2013
1 parent c97c32d commit d61095a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
require_once 'includes/common.inc.php';




// Get keys from Redis according to server-config.
$keys = $redis->keys($server['filter']);
try {
// Get keys from Redis according to server-config.
$keys = $redis->keys($server['filter']);
} catch (Exception $e) {
die('ERROR: Can\'t connect to Redis');
}

sort($keys);

Expand Down

0 comments on commit d61095a

Please sign in to comment.