From 7c178de3f00055028b2930accd7551bbed515214 Mon Sep 17 00:00:00 2001 From: Braeden Sowinski Date: Wed, 9 Feb 2022 14:00:34 -0800 Subject: [PATCH] simple/change-contact-find-error-message --- controllers/authController.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/authController.go b/controllers/authController.go index e75780e..eb06090 100644 --- a/controllers/authController.go +++ b/controllers/authController.go @@ -675,7 +675,7 @@ func Student(c *fiber.Ctx) error { for i := range student.PersonalData.Contacts { findErr := contactCollection.FindOne(context.TODO(), bson.M{"_id": student.PersonalData.Contacts[i]}).Decode(&contact) if findErr != nil { - responceData["error"] = "Error: There was an error loading some contacts" + responceData["error"] = "Error! There was an error finding some contacts" } contacts = append(contacts, contact) }