From 493cd05481b1f9239c5d57d3c15570d2608cee80 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?In=C3=A8s=20Yeterian?= <ines.yeterian@student-cs.fr>
Date: Sat, 22 Jan 2022 00:53:13 +0100
Subject: [PATCH] try to add cute waiting message

---
 backend/routes/routesToucan.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/backend/routes/routesToucan.js b/backend/routes/routesToucan.js
index f0935e1..c9fa1c6 100644
--- a/backend/routes/routesToucan.js
+++ b/backend/routes/routesToucan.js
@@ -160,7 +160,8 @@ router.get('/pdf/:urlId', (req, res) => {
               match({urlId: req.params.urlId}).
               exec((err,data) => {
                 if (err) {
-                  console.log(err);
+                    console.log(err);
+                    res.sendStatus(404,"Nous cherchons votre Toucan, n'hésitez pas à recharger !");
                   
                 } else {
                   const id = data[0]._id;
-- 
GitLab