diff options
author | Pavlo Strokov <pstrokov@gitlab.com> | 2021-09-07 12:59:12 +0300 |
---|---|---|
committer | Pavlo Strokov <pstrokov@gitlab.com> | 2021-09-13 13:17:17 +0300 |
commit | 9e9979dbe0ea9c891497a2152590c0a72d5f7492 (patch) | |
tree | 4803b44a5f4077357859711a6ba2931dd4864c88 /cmd | |
parent | cd233499f2b544cd4fbc10069ded5d9a199781f6 (diff) |
config: Extend error from loadConfig() with context
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/gitaly/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/gitaly/main.go b/cmd/gitaly/main.go index 82b136d3e..3b901c45c 100644 --- a/cmd/gitaly/main.go +++ b/cmd/gitaly/main.go @@ -53,7 +53,7 @@ func loadConfig(configPath string) (config.Cfg, error) { } if err := cfg.Validate(); err != nil { - return config.Cfg{}, err + return config.Cfg{}, fmt.Errorf("invalid config: %w", err) } return cfg, nil |