fix fields not exported in json
This commit is contained in:
@@ -54,21 +54,21 @@ func (c *Config) Load() error {
|
||||
return err
|
||||
}
|
||||
|
||||
if len(cfg.Email.smtpHost) == 0 {
|
||||
if len(cfg.Email.SmtpHost) == 0 {
|
||||
if *debugFlag {
|
||||
log.Printf("Config.Load : no smtp")
|
||||
}
|
||||
return fmt.Errorf("no smtp")
|
||||
}
|
||||
|
||||
if len(cfg.Email.fromEmail) == 0 {
|
||||
if len(cfg.Email.FromEmail) == 0 {
|
||||
if *debugFlag {
|
||||
log.Printf("Config.Load : no email from")
|
||||
}
|
||||
return fmt.Errorf("no email from")
|
||||
}
|
||||
|
||||
if len(cfg.Email.toEmail) == 0 {
|
||||
if len(cfg.Email.ToEmail) == 0 {
|
||||
if *debugFlag {
|
||||
log.Printf("Config.Load : no email to")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user