mirror of
https://github.com/idanoo/php-resque
synced 2025-07-01 21:52:21 +00:00
maintain previous credis exception when throwing redis exceptions from resque
This commit is contained in:
parent
af570212b3
commit
b1911f6867
1 changed files with 2 additions and 2 deletions
|
@ -142,7 +142,7 @@ class Resque_Redis
|
|||
}
|
||||
}
|
||||
catch(CredisException $e) {
|
||||
throw new Resque_RedisException($e);
|
||||
throw new Resque_RedisException('Error communicating with Redis: ' . $e->getMessage(), 0, $e);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -245,7 +245,7 @@ class Resque_Redis
|
|||
return $this->driver->__call($name, $args);
|
||||
}
|
||||
catch (CredisException $e) {
|
||||
throw new Resque_RedisException($e);
|
||||
throw new Resque_RedisException('Error communicating with Redis: ' . $e->getMessage(), 0, $e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue