TLS Config Error changed
This commit is contained in:
parent
8d8c42a4da
commit
a51a5da6f3
@ -318,11 +318,11 @@ func (cfg *ServerCommonConf) Validate() error {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if cfg.DashboardTLSCertFile == "" {
|
if cfg.DashboardTLSCertFile == "" {
|
||||||
return fmt.Errorf("ERROR! dashboard_tls_cert_file cannot be null when dashboard_tls_mode is true")
|
return fmt.Errorf("ERROR! dashboard_tls_cert_file must be specified when dashboard_tls_mode is true")
|
||||||
}
|
}
|
||||||
|
|
||||||
if cfg.DashboardTLSKeyFile == "" {
|
if cfg.DashboardTLSKeyFile == "" {
|
||||||
return fmt.Errorf("ERROR! dashboard_tls_cert_file cannot be null when dashboard_tls_mode is true")
|
return fmt.Errorf("ERROR! dashboard_tls_cert_file must be specified when dashboard_tls_mode is true")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return validator.New().Struct(cfg)
|
return validator.New().Struct(cfg)
|
||||||
|
Loading…
Reference in New Issue
Block a user