From 89e396d3c02cffdb16595203830037b336516ac0 Mon Sep 17 00:00:00 2001 From: Morgan Tocker Date: Wed, 15 Jan 2020 11:44:39 -0700 Subject: [PATCH] Change from warning to fatal Signed-off-by: Morgan Tocker --- go/vt/mysqlctl/mysqld.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/go/vt/mysqlctl/mysqld.go b/go/vt/mysqlctl/mysqld.go index 4a526a326b2..e6ae3ab1365 100644 --- a/go/vt/mysqlctl/mysqld.go +++ b/go/vt/mysqlctl/mysqld.go @@ -797,10 +797,9 @@ func (mysqld *Mysqld) getMycnfTemplate() string { if *mycnfTemplateFile != "" { data, err := ioutil.ReadFile(*mycnfTemplateFile) if err != nil { - log.Warningf("template file could not be read, using default template instead: %v", *mycnfTemplateFile) // continue to default - } else { - return string(data) // use only specified template + log.Fatalf("mycnf template file could not be read: %v", *mycnfTemplateFile) } + return string(data) // use only specified template } myTemplateSource := new(bytes.Buffer) myTemplateSource.WriteString("[mysqld]\n")