From 0e775b70a515752631802c07138eaf46535a755f Mon Sep 17 00:00:00 2001 From: lightclient Date: Fri, 22 Nov 2024 06:54:17 -0700 Subject: [PATCH] cmd/geth: better error when config open fails --- cmd/geth/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/geth/config.go b/cmd/geth/config.go index e1dc0fda311e5..5f252ebf1d748 100644 --- a/cmd/geth/config.go +++ b/cmd/geth/config.go @@ -151,7 +151,7 @@ func loadBaseConfig(ctx *cli.Context) gethConfig { // Load config file. if file := ctx.String(configFileFlag.Name); file != "" { if err := loadConfig(file, &cfg); err != nil { - utils.Fatalf("%v", err) + utils.Fatalf("failed to load config: %v", err) } }