(goctl)fix: api timeout limited during api generation (#4513)

This commit is contained in:
kesonan
2024-12-19 16:19:10 +08:00
committed by GitHub
parent 9c4ed394a7
commit 6700910f64
5 changed files with 42 additions and 12 deletions

View File

@@ -29,8 +29,6 @@ const (
// string mode end
)
var missingInput = errors.New("missing input")
type mode int
// Scanner is a lexical scanner.
@@ -629,7 +627,7 @@ func NewScanner(filename string, src interface{}) (*Scanner, error) {
}
if len(data) == 0 {
return nil, missingInput
return nil, fmt.Errorf("filename: %s,missing input", filename)
}
var runeList []rune