opt: return error when download mj image failed

This commit is contained in:
RockYang 2023-09-08 21:02:21 +08:00
parent ebd3ef842f
commit c3f016eae8

View File

@ -108,7 +108,7 @@ func (h *MidJourneyHandler) Notify(c *gin.Context) {
imgURL, err := h.uploaderManager.GetUploadHandler().PutImg(data.Image.URL)
if err != nil {
logger.Error("error with download image: ", err)
resp.SUCCESS(c)
resp.ERROR(c, err.Error())
return
}