diff options
Diffstat (limited to '')
-rw-r--r-- | wsmsg_confirm.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/wsmsg_confirm.go b/wsmsg_confirm.go index 2f2b07f..7657034 100644 --- a/wsmsg_confirm.go +++ b/wsmsg_confirm.go @@ -31,7 +31,6 @@ import ( func messageConfirm( ctx context.Context, c *websocket.Conn, - reportError reportErrorT, mar []string, userID string, department string, @@ -62,7 +61,7 @@ func messageConfirm( for courseType := range courseTypes { minimum, err := getCourseTypeMinimumForYearGroup(department, courseType) if err != nil { - return reportError("Invalid year group or course type, something is broken") + return wrapError(errInvalidYearGroupOrCourseType, err) } if (*userCourseTypes)[courseType] < minimum { return writeText( @@ -84,7 +83,7 @@ func messageConfirm( userID, ) if err != nil { - return reportError("error updating database setting confirmation") + return wrapError(errUnexpectedDBError, err) } return writeText( |