mirror of https://github.com/dirtbags/moth.git
Friendler error message if you got the right answer
This commit is contained in:
parent
7e1c1cf937
commit
ad4cd6f700
|
@ -197,8 +197,8 @@ func (ctx *Instance) answerHandler(w http.ResponseWriter, req *http.Request) {
|
|||
if err := ctx.AwardPoints(teamid, category, points); err != nil {
|
||||
respond(
|
||||
w, req, Error,
|
||||
"Error awarding points",
|
||||
err.Error(),
|
||||
"Cannot award points",
|
||||
"The answer is correct, but there was an error awarding points: %v", err.Error(),
|
||||
)
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue