admin: Don't fail if importer is not writable
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
1591ec4376
commit
83a579fbd2
@ -141,8 +141,7 @@ func saveChallengeInfo(c *gin.Context) {
|
|||||||
err = sync.WriteFileContent(sync.GlobalImporter, "challenge.json", jenc)
|
err = sync.WriteFileContent(sync.GlobalImporter, "challenge.json", jenc)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println("Unable to SaveChallengeInfo:", err.Error())
|
log.Println("Unable to SaveChallengeInfo:", err.Error())
|
||||||
c.AbortWithStatusJSON(http.StatusInternalServerError, gin.H{"errmsg": fmt.Sprintf("Unable to save challenge info: %s", err.Error())})
|
// Ignore the error, try to continue
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
err = sync.ImportChallengeInfo(info)
|
err = sync.ImportChallengeInfo(info)
|
||||||
|
Loading…
Reference in New Issue
Block a user