From 3753efe661d228ffaa908f6601287451e207a0b5 Mon Sep 17 00:00:00 2001 From: Faisal Akhtar PC Date: Tue, 4 Aug 2020 06:29:40 +0530 Subject: [PATCH] more specific error message; --- routes/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/index.js b/routes/index.js index 15cdb02..fa05011 100644 --- a/routes/index.js +++ b/routes/index.js @@ -12,7 +12,7 @@ router.get('/', function(req, res, next) { router.get('/card', function(req, res, next) { var username = req.query.user if(username=="" || username==null || username == undefined) { - res.send("There was a problem with your request") + res.send("Query parameter 'user' missing
Please make a request as following /card?user=<your-github-username>") return }