summaryrefslogtreecommitdiff
path: root/course_groups.go
diff options
context:
space:
mode:
Diffstat (limited to 'course_groups.go')
-rw-r--r--course_groups.go9
1 files changed, 3 insertions, 6 deletions
diff --git a/course_groups.go b/course_groups.go
index c1541ce..f81fcfa 100644
--- a/course_groups.go
+++ b/course_groups.go
@@ -63,8 +63,7 @@ func populateUserCourseGroups(
userID,
)
if err != nil {
- return fmt.Errorf(
- "%w: %w",
+ return wrapError(
errUnexpectedDBError,
err,
)
@@ -73,8 +72,7 @@ func populateUserCourseGroups(
if !rows.Next() {
err := rows.Err()
if err != nil {
- return fmt.Errorf(
- "%w: %w",
+ return wrapError(
errUnexpectedDBError,
err,
)
@@ -84,8 +82,7 @@ func populateUserCourseGroups(
var thisCourseID int
err := rows.Scan(&thisCourseID)
if err != nil {
- return fmt.Errorf(
- "%w: %w",
+ return wrapError(
errUnexpectedDBError,
err,
)