Skip to content

Commit 46d729a

Browse files
gowthamgtsWalter Beegle
authored and
Walter Beegle
committed
ipfs#7252 - print error message
1 parent 52abd4f commit 46d729a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/corehttp/gateway_handler.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ func (i *gatewayHandler) serveFile(w http.ResponseWriter, req *http.Request, nam
393393
// Fixes https://github.com/ipfs/go-ipfs/issues/7252
394394
mimeType, err := mimetype.DetectReader(content)
395395
if err != nil {
396-
http.Error(w, "cannot detect content-type", http.StatusInternalServerError)
396+
http.Error(w, fmt.Sprintf("cannot detect content-type: %s", err.Error()), http.StatusInternalServerError)
397397
return
398398
}
399399

0 commit comments

Comments
 (0)