mirror of
https://gitee.com/blackfox/geekai.git
synced 2024-12-12 12:45:06 +08:00
opt: return error when download mj image failed
This commit is contained in:
parent
ebd3ef842f
commit
c3f016eae8
@ -108,7 +108,7 @@ func (h *MidJourneyHandler) Notify(c *gin.Context) {
|
|||||||
imgURL, err := h.uploaderManager.GetUploadHandler().PutImg(data.Image.URL)
|
imgURL, err := h.uploaderManager.GetUploadHandler().PutImg(data.Image.URL)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger.Error("error with download image: ", err)
|
logger.Error("error with download image: ", err)
|
||||||
resp.SUCCESS(c)
|
resp.ERROR(c, err.Error())
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user