From fb760a9f6d775d1c9fe6b3fab821cc5406fd8449 Mon Sep 17 00:00:00 2001 From: Jason Kulatunga Date: Tue, 29 Nov 2022 22:06:42 -0800 Subject: [PATCH] make sure we print an error if the config file is invalid. fixes #408 --- webapp/backend/cmd/scrutiny/scrutiny.go | 1 + 1 file changed, 1 insertion(+) diff --git a/webapp/backend/cmd/scrutiny/scrutiny.go b/webapp/backend/cmd/scrutiny/scrutiny.go index ae22677..4d9f62f 100644 --- a/webapp/backend/cmd/scrutiny/scrutiny.go +++ b/webapp/backend/cmd/scrutiny/scrutiny.go @@ -34,6 +34,7 @@ func main() { if _, ok := err.(errors.ConfigFileMissingError); ok { // Handle errors reading the config file //ignore "could not find config file" } else if err != nil { + log.Print(color.HiRedString("CONFIG ERROR: %v", err)) os.Exit(1) }