Skip to content

Commit

Permalink
more specific error message;
Browse files Browse the repository at this point in the history
  • Loading branch information
faisalAkhtar committed Aug 4, 2020
1 parent c242d75 commit 3753efe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<br>Please make a request as following /card?user=&lt;your-github-username&gt;")
return
}

Expand Down

0 comments on commit 3753efe

Please sign in to comment.