diff options
Diffstat (limited to 'config.go')
| -rw-r--r-- | config.go | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -86,7 +86,9 @@ func (all *Chats) ConfigLoad() error { // this means the gemini.pb file exists and was read if len(data) == 0 { // todo: add default data here since it's blank? // might cause nil panic? - return errors.New("chatpb.ConfigLoad() gemini.pb is empty") + all.AddGeminiComment("I like astronomy") + log.Info(errors.New("chatpb.ConfigLoad() gemini.pb is empty")) + return nil } err = all.Unmarshal(data) test := NewChats() |
