maintain previous credis exception when throwing redis exceptions from resque

This commit is contained in:
Chris Boulton 2015-02-03 09:54:03 -08:00 committed by Chris Boulton
parent af570212b3
commit b1911f6867

View File

@ -142,7 +142,7 @@ class Resque_Redis
} }
} }
catch(CredisException $e) { 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); return $this->driver->__call($name, $args);
} }
catch (CredisException $e) { catch (CredisException $e) {
throw new Resque_RedisException($e); throw new Resque_RedisException('Error communicating with Redis: ' . $e->getMessage(), 0, $e);
} }
} }