Add circular progress to user page

This commit is contained in:
2019-12-05 13:08:59 -05:00
parent 1aff5ba99b
commit 57087a5ea3
2 changed files with 16 additions and 4 deletions

View File

@@ -56,7 +56,7 @@ exports.getallPostsforUser = (req, res) => {
.catch(function(err) {
return res
.status(500)
.json("Failed to retrieve user's posts from database.", err);
.json({message: "Failed to retrieve user's posts from database.", error: err});
});
};