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.'); } } /**