diff --git a/core/options.go b/core/options.go index 2f022ba..1d0734e 100644 --- a/core/options.go +++ b/core/options.go @@ -15,7 +15,7 @@ import ( "github.com/goccy/go-yaml" ) -var version = "1.0.7" +var version = "1.0.8" type Options struct { RestartRimeCmd string `yaml:"restart_rime_cmd"` diff --git a/dict/loader.go b/dict/loader.go index c07a635..a95e986 100644 --- a/dict/loader.go +++ b/dict/loader.go @@ -44,8 +44,8 @@ func LoadItems(paths ...string) (fes []*FileEntries) { fileNames := make(map[string]bool) for fe := range ch { if fe.Err != nil { - log.Printf("load [%s] error: %s", fe.FilePath, fe.Err) - continue + fmt.Println("load dict file error: ", fe.Err) + os.Exit(0) } if _, ok := fileNames[fe.FilePath]; ok { log.Printf("file [%s] already loaded", fe.FilePath)