mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-11 00:40:00 +08:00
(goctl)fix: api timeout limited during api generation (#4513)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user