From 4523eb1fb8193c23646055a895cec8ecbda06765 Mon Sep 17 00:00:00 2001 From: Codex Date: Sun, 17 May 2026 20:10:30 +0800 Subject: [PATCH] Harden invalid store queue handling --- backend/controllers/QueueController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/controllers/QueueController.php b/backend/controllers/QueueController.php index d94efe0e8..1fe779ab7 100644 --- a/backend/controllers/QueueController.php +++ b/backend/controllers/QueueController.php @@ -157,7 +157,7 @@ public function actionPublishStore($id) { } return $this->redirect(['queue/view','id'=>$queue->queue_id]); } else { - die('invalid store'); + throw new NotFoundHttpException('No pending queue found for this store.'); } } /**