summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ws.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/ws.go b/ws.go
index 89701df..d4c3fd0 100644
--- a/ws.go
+++ b/ws.go
@@ -406,7 +406,10 @@ func handleConn(
* in the courseGroup.
*/
var userCourseGroups userCourseGroupsT = make(map[courseGroupT]bool)
- populateUserCourseGroups(newCtx, &userCourseGroups, userID)
+ err := populateUserCourseGroups(newCtx, &userCourseGroups, userID)
+ if err != nil {
+ return reportError(fmt.Sprintf("cannot populate user course groups: %v", err))
+ }
/*
* Later we need to select from recv and send and perform the