Skip to content

Commit 08fac98

Browse files
gowthamgtsStebalien
authored andcommitted
#7252 - print error message
1 parent c2f4162 commit 08fac98

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
@@ -381,7 +381,7 @@ func (i *gatewayHandler) serveFile(w http.ResponseWriter, req *http.Request, nam
381381
// Fixes https://github.com/ipfs/go-ipfs/issues/7252
382382
mimeType, err := mimetype.DetectReader(content)
383383
if err != nil {
384-
http.Error(w, "cannot detect content-type", http.StatusInternalServerError)
384+
http.Error(w, fmt.Sprintf("cannot detect content-type: %s", err.Error()), http.StatusInternalServerError)
385385
return
386386
}
387387

0 commit comments

Comments
 (0)