From dbb106146fae8e4eb7354cb120019b6f83f97370 Mon Sep 17 00:00:00 2001 From: "steven.chiu" Date: Wed, 5 Jun 2019 22:22:55 +0800 Subject: [PATCH] Fix wrong path of cache exception. --- src/JobScheduler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/JobScheduler.php b/src/JobScheduler.php index 7bc833f..3425b42 100644 --- a/src/JobScheduler.php +++ b/src/JobScheduler.php @@ -68,7 +68,7 @@ public function run(callable $cb = null) echo "Prepare to quit...\n"; return; - } catch (wxception\CacheException $exception) { + } catch (CacheException $exception) { echo "Exception:$exception\n"; echo "Prepare to quit...\n"; @@ -120,7 +120,7 @@ public function monitorExpireKey($redisConf, $looper) $this->keyEventMonitor($redisConnectPub); } catch (\RedisException $exception) { echo "Exception:$exception\n"; - } catch (TimeWork\CacheException $exception) { + } catch (CacheException $exception) { echo "Exception:$exception\n"; } }