From a51a5da6f354d1af84d99c1fbe33839677af02a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?EMRE=20=C3=87EL=C4=B0K?= Date: Mon, 20 Jun 2022 12:41:23 +0300 Subject: [PATCH] TLS Config Error changed --- pkg/config/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)