admin: Don't fail if importer is not writable
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
nemunaire 2022-06-06 23:00:03 +02:00
parent 1591ec4376
commit 83a579fbd2

View File

@ -141,8 +141,7 @@ func saveChallengeInfo(c *gin.Context) {
err = sync.WriteFileContent(sync.GlobalImporter, "challenge.json", jenc)
if err != nil {
log.Println("Unable to SaveChallengeInfo:", err.Error())
c.AbortWithStatusJSON(http.StatusInternalServerError, gin.H{"errmsg": fmt.Sprintf("Unable to save challenge info: %s", err.Error())})
return
// Ignore the error, try to continue
}
err = sync.ImportChallengeInfo(info)