qa: Add logs to gitlab export
This commit is contained in:
parent
092d2256f7
commit
a1b0e6a79b
@ -269,6 +269,7 @@ func GitLab_ExportQA(c *gin.Context) {
|
||||
|
||||
gitlabid, err := GitLab_getExerciceId(exercice)
|
||||
if err != nil {
|
||||
log.Println("Unable to retrieve Gitlab exercice id:", err.Error())
|
||||
c.AbortWithStatusJSON(http.StatusInternalServerError, gin.H{"errmsg": err.Error()})
|
||||
return
|
||||
}
|
||||
@ -301,6 +302,7 @@ func GitLab_ExportQA(c *gin.Context) {
|
||||
oauth2Token := c.MustGet("gitlab-token").(*oauth2.Token)
|
||||
iid, err := gitlab_newIssue(c.Request.Context(), oauth2Token, gitlabid, &issue)
|
||||
if err != nil {
|
||||
log.Println("Unable to create Gitlab issue:", err.Error())
|
||||
c.AbortWithStatusJSON(http.StatusInternalServerError, gin.H{"errmsg": err.Error()})
|
||||
return
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user