fix: report one error text when a response body is too large

This commit is contained in:
aykhans committed 2026-09-29 23:06:22 +04:00
1 parent 9d6e4e6bf8
commit a327c4978b
4 files changed
+8 -3

No files matched your search

+2 -1
View File
@@ -17,6 +17,8 @@ var (
)
ErrRemoteFileTooLarge = errors.New("remote file exceeds " + FormatByteSize(RemoteFetchLimit))
ErrResponseBodyTooLarge = errors.New("response body exceeds the body limit")
)
type FieldParseError struct {
@@ -415,7 +417,6 @@ var (
ErrScriptHTTPMethodEmpty = errors.New("http method cannot be empty")
ErrScriptHTTPURLInvalid = errors.New("URL must be an absolute http or https URL")
ErrScriptHTTPUnknownOption = errors.New("unknown option")
ErrScriptHTTPBodyTooLarge = errors.New("response body exceeds the body limit")
ErrScriptJSONCycle = errors.New("cannot encode a table that contains itself")
)