From 1a6632002987beaf70abddff1e1300e7b69ab466 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Rynning-T=C3=B8nnesen?= Date: Mon, 25 Feb 2019 00:01:04 +0100 Subject: [PATCH] More correct error message on no video find with those tags --- server/routing/client/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/routing/client/api.js b/server/routing/client/api.js index 95f8c8a1..a4fcad53 100644 --- a/server/routing/client/api.js +++ b/server/routing/client/api.js @@ -802,7 +802,7 @@ router.route('/api/search/:channel_name/').post(function(req, res) { } db.collection(channel_name).find({tags: {$regex : ".*" + searchQuery + ".*"}}, function(e, results) { if(results.length == 0) { - res.status(404).send(error.not_found.list); + res.status(404).send(error.not_found.local); return; } var to_return = error.no_error;