Browse Source

Removed old comment -- error was due to non image file type (HTML)

pull/158/head
Richard Lewis 8 years ago
parent
commit
c211f4e4c1
  1. 2
      src/github.com/matrix-org/go-neb/services/imgur/imgur.go

2
src/github.com/matrix-org/go-neb/services/imgur/imgur.go

@ -159,8 +159,6 @@ func (s *Service) cmdImgurImgSearch(client *gomatrix.Client, roomID, userID stri
}, nil }, nil
} }
// FIXME -- Sometimes upload fails with a cryptic error - "msg=Upload request failed code=400"
// log.Printf("Uploading image at: %s", imgURL)
resUpload, err := client.UploadLink(imgURL) resUpload, err := client.UploadLink(imgURL)
if err != nil { if err != nil {
return nil, fmt.Errorf("Failed to upload Imgur image (%s) to matrix: %s", imgURL, err.Error()) return nil, fmt.Errorf("Failed to upload Imgur image (%s) to matrix: %s", imgURL, err.Error())

Loading…
Cancel
Save