From 4f964c4b2c24c91a6d54c2e78e53f2386da187f9 Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Sun, 24 Jan 2021 19:03:07 -0600 Subject: [PATCH] Show error from TOML library when parsing fails --- cmd/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/main.go b/cmd/main.go index c0c60f8..27994dc 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -24,7 +24,7 @@ func Main(args []string) (int, error) { } if _, err := toml.DecodeFile(configPath, &config); err != nil { - err = fmt.Errorf("fatal: failed to parse %s", configPath) + err = fmt.Errorf("fatal: failed to parse %s; %w", configPath, err) return ExitError, err }