diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2017-10-10 12:09:32 +0300 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2017-10-10 12:09:32 +0300 |
commit | 7ce32eac11eb49c23d89c85e1bcd6f185908cba7 (patch) | |
tree | 55b45d7a0c85a1b8527358f0f5e0ae750eb4ba88 | |
parent | f19a884487b900fb73b8c413c9779feb97c78841 (diff) |
Improve 'load colors' error message
-rw-r--r-- | cmd/gitaly/main.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cmd/gitaly/main.go b/cmd/gitaly/main.go index 1ba31c693..37dc2e408 100644 --- a/cmd/gitaly/main.go +++ b/cmd/gitaly/main.go @@ -41,7 +41,11 @@ func loadConfig(configPath string) error { return err } - return linguist.LoadColors() + if err := linguist.LoadColors(); err != nil { + return fmt.Errorf("load linguist colors: %v", err) + } + + return nil } // registerServerVersionPromGauge registers a label with the current server version |