Skip to content

Commit 5c68f02

Browse files
committed
change the error text to be more precise
1 parent c9402d0 commit 5c68f02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/repo/download.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func ServeData(ctx *context.Context, name string, reader io.Reader) error {
3636
if base.IsTextFile(buf) || ctx.QueryBool("render") {
3737
cs, err := charset.DetectEncoding(buf)
3838
if err != nil {
39-
log.Error("Detect raw file %s charset failed: %v, just ignored", name, err)
39+
log.Error("Detect raw file %s charset failed: %v, using by default utf-8", name, err)
4040
cs = "utf-8"
4141
}
4242
ctx.Resp.Header().Set("Content-Type", "text/plain; charset="+cs)

0 commit comments

Comments
 (0)