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)
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user