diff --git a/pkg/config/server.go b/pkg/config/server.go index 675a2326..50eb3054 100644 --- a/pkg/config/server.go +++ b/pkg/config/server.go @@ -318,11 +318,11 @@ func (cfg *ServerCommonConf) Validate() error { } } else { 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 == "" { - 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)