From 2961f132fb1278af9c97904e27982b9acc393be6 Mon Sep 17 00:00:00 2001 From: Maximilian Date: Fri, 23 Dec 2022 20:42:14 -0600 Subject: [PATCH] More uniform errors --- config/config.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/config.go b/config/config.go index d700da1..45e955a 100644 --- a/config/config.go +++ b/config/config.go @@ -32,13 +32,13 @@ func LoadConfig() Configuration { flag.Parse() file, err := os.Open(*c) if err != nil { - log.Fatal("Unable to open config JSON file: ", err) + log.Fatal("Unable to open JSON config file: ", err) } defer func(file *os.File) { err := file.Close() if err != nil { - log.Fatal("Unable to close config file: ", err) + log.Fatal("Unable to close JSON config file: ", err) } }(file) @@ -47,7 +47,7 @@ func LoadConfig() Configuration { Config := Configuration{} err = decoder.Decode(&Config) if err != nil { - log.Fatal("Unable to decode config JSON file: ", err) + log.Fatal("Unable to decode JSON config file: ", err) } return Config