From 73cccf16ac7a3573bbc3d226d5f60ef00ee7a41c Mon Sep 17 00:00:00 2001 From: nstCactus Date: Fri, 3 Nov 2023 09:06:34 +0100 Subject: [PATCH] fix(console): do not override error handler on console requests --- src/Canary.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Canary.php b/src/Canary.php index 154a057..d8752a5 100644 --- a/src/Canary.php +++ b/src/Canary.php @@ -8,6 +8,9 @@ class Canary extends Plugin { public function init() { + if (Craft::$app->getRequest()->getIsConsoleRequest()) { + return; + } Craft::setAlias("@TopShelfCraft/Canary", __DIR__);