Skip to content

Commit

Permalink
modify not found
Browse files Browse the repository at this point in the history
  • Loading branch information
sjqzhang committed Oct 31, 2023
1 parent 4b5eb2b commit e48d9ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/fileserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ func (c *Server) GetSmallFileByURI(w http.ResponseWriter, r *http.Request) ([]by
return nil, false, err
}
if info.Size() < offset+int64(length) {
return nil, true, errors.New("noFound")
return nil, true, errors.New("Not found")
} else {
data, err = c.util.ReadFileByOffSet(fullpath, offset, length)
if err != nil {
Expand Down

0 comments on commit e48d9ee

Please sign in to comment.