From a21d431541b9a37c63f5504e8a58bc309193fd37 Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Mon, 14 Nov 2022 09:58:40 -0800 Subject: [PATCH] =?UTF-8?q?fix:=20don't=20panic()=20=F0=9F=98=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/config/app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/config/app.go b/pkg/config/app.go index 1d25eec3..85793b8e 100644 --- a/pkg/config/app.go +++ b/pkg/config/app.go @@ -329,7 +329,7 @@ func TemplateAppEnvSample(recipeName, appName, server, domain string) error { err = ioutil.WriteFile(appEnvPath, []byte(newContents), 0) if err != nil { - panic(err) + return err } logrus.Debugf("copied & templated %s to %s", envSamplePath, appEnvPath)