Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
better error handling when incorrect config file
Browse files Browse the repository at this point in the history
  • Loading branch information
daria-lewandowska committed Sep 27, 2016
1 parent 11ed632 commit 2d6d4ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion novaplugin/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ func (self *NovaPlugin) init(cfg interface{}) error {
err := ReadConfig(cfg, &self.config)

if err != nil {
panic(fmt.Errorf("plugin initalization failed : [%v]", err))
return err
}

// testingCollector is a variable that might either be newCollector
Expand Down

0 comments on commit 2d6d4ed

Please sign in to comment.