mirror of
https://github.com/idanoo/php-resque.git
synced 2024-11-22 00:11:53 +00:00
maintain previous credis exception when throwing redis exceptions from resque
This commit is contained in:
parent
af570212b3
commit
b1911f6867
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user