Skip to content

Commit

Permalink
Merge pull request #44 from smartnews/fix-images-blob-error
Browse files Browse the repository at this point in the history
fix: fix GetImagesBlob error
  • Loading branch information
chitanda-azusa authored Dec 2, 2024
2 parents 9e9b491 + 7bc3bcb commit ed16041
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion thumbnail/thumbnail_magick.go
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,13 @@ func MakeThumbnailMagick(bytes []byte, dst http.ResponseWriter, params Thumbnail
}

//画像出力
blob := mw.GetImagesBlob()
blob, err := mw.GetImagesBlob()

if err != nil {
glog.Error("Get Images Blob failed: " + err.Error())
log.Println("Get Images Blob failed: " + err.Error())
return err
}

if len(blob) == 0 {
err = mw.GetLastError()
Expand Down

0 comments on commit ed16041

Please sign in to comment.