diff options
author | Julien Dessaux | 2021-03-18 21:40:09 +0100 |
---|---|---|
committer | Julien Dessaux | 2021-03-18 21:40:09 +0100 |
commit | bba5688aa51a2def910d2a0d3f9f3fb94b224ccc (patch) | |
tree | a48e7742836f1cc4dcc4d701c82e83442afde621 | |
parent | Upgraded modules dependencies (diff) | |
download | shell-game-launcher-bba5688aa51a2def910d2a0d3f9f3fb94b224ccc.tar.gz shell-game-launcher-bba5688aa51a2def910d2a0d3f9f3fb94b224ccc.tar.bz2 shell-game-launcher-bba5688aa51a2def910d2a0d3f9f3fb94b224ccc.zip |
Fixed typos in error messages
Diffstat (limited to '')
-rw-r--r-- | config/config.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config/config.go b/config/config.go index 0867105..b68a26a 100644 --- a/config/config.go +++ b/config/config.go @@ -44,15 +44,15 @@ func LoadFile(path string) (*Config, error) { var c *Config f, errOpen := os.Open(path) if errOpen != nil { - return nil, errors.Wrapf(errOpen, "Failed to open curation file %s", path) + return nil, errors.Wrapf(errOpen, "Failed to open configuration file %s", path) } defer f.Close() decoder := yaml.NewDecoder(f) if err := decoder.Decode(&c); err != nil { - return nil, errors.Wrap(err, "Failed to decode curation file") + return nil, errors.Wrap(err, "Failed to decode configuration file") } if err := c.validate(); err != nil { - return nil, errors.Wrap(err, "Failed to validate curation") + return nil, errors.Wrap(err, "Failed to validate configuration") } // If all looks good we validate menu consistency for _, v := range c.Menus { |