This commit is contained in:
2020-09-03 18:09:53 +08:00
parent 72238e8a5c
commit 6425b0464d
+5 -3
View File
@@ -284,10 +284,12 @@ class Redis extends Component
} else { } else {
$data = $this->proxy()->{$name}(...$arguments); $data = $this->proxy()->{$name}(...$arguments);
} }
} catch (RedisConnectException $exception) {
throw new Exception($exception->getMessage());
} catch (\Throwable $exception) { } catch (\Throwable $exception) {
$this->error(print_r($exception, true)); $this->error(print_r([
$exception->getMessage(),
$exception->getFile(),
$exception->getLine()
], true));
$data = false; $data = false;
} finally { } finally {
return $data; return $data;