From aeb69861ba78410a1785770d15ecb90e350a5332 Mon Sep 17 00:00:00 2001 From: Greyson Dehn Date: Thu, 22 Dec 2016 11:34:22 -0600 Subject: [PATCH] Add more verbose error --- plugin.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin.go b/plugin.go index 428603a..93a2893 100644 --- a/plugin.go +++ b/plugin.go @@ -131,7 +131,9 @@ func submoduleOverride(submodules map[string]map[string]string) string { fileName := hex.EncodeToString(randBytes) + "_override.tf" if err := ioutil.WriteFile(fileName, fileContents, 0644); err != nil { - panic(err) + logrus.WithFields(logrus.Fields{ + "error": err, + }).Fatal("Error writing overrides file!") } return fileName