sync: Introduce repochecker-ack.txt to support check exceptions
This commit is contained in:
parent
edde9f885d
commit
fb368d79d1
17 changed files with 283 additions and 106 deletions
|
|
@ -110,6 +110,14 @@ func ExerciceHandler(c *gin.Context) {
|
|||
c.AbortWithStatusJSON(http.StatusNotFound, gin.H{"errmsg": "Exercice not found"})
|
||||
return
|
||||
}
|
||||
|
||||
theme, err = exercice.GetTheme()
|
||||
if err != nil {
|
||||
c.AbortWithStatusJSON(http.StatusInternalServerError, gin.H{"errmsg": "Unable to find the attached theme."})
|
||||
return
|
||||
}
|
||||
|
||||
c.Set("theme", theme)
|
||||
}
|
||||
|
||||
c.Set("exercice", exercice)
|
||||
|
|
|
|||
Reference in a new issue