We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17322bb commit de2ae46Copy full SHA for de2ae46
cli/core/search.go
@@ -134,10 +134,9 @@ func indexesNeedUpdating(duration string) bool {
134
135
now := time.Now()
136
modTimeThreshold, err := time.ParseDuration(duration)
137
- // Not the most elegant way of handling this error
138
- // but it does its job
139
if err != nil {
140
- modTimeThreshold, _ = time.ParseDuration("24h")
+ feedback.Error(tr("Invalid timeout: %s", err))
+ os.Exit(errorcodes.ErrBadArgument)
141
}
142
143
urls := []string{globals.DefaultIndexURL}
0 commit comments