Friendler error message if you got the right answer

This commit is contained in:
Neale Pickett 2018-09-20 20:44:56 +00:00
parent 7e1c1cf937
commit ad4cd6f700
1 changed files with 2 additions and 2 deletions

View File

@ -197,8 +197,8 @@ func (ctx *Instance) answerHandler(w http.ResponseWriter, req *http.Request) {
if err := ctx.AwardPoints(teamid, category, points); err != nil { if err := ctx.AwardPoints(teamid, category, points); err != nil {
respond( respond(
w, req, Error, w, req, Error,
"Error awarding points", "Cannot award points",
err.Error(), "The answer is correct, but there was an error awarding points: %v", err.Error(),
) )
return return
} }