Skip to content

Commit

Permalink
fixed panics (open-telemetry#6)
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Elliott <number101010@gmail.com>
  • Loading branch information
joe-elliott authored Feb 11, 2021
1 parent fb510a9 commit fdf9416
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ func Execute() {
RunE: func(cmd *cobra.Command, args []string) error {

if err := cfg.Validate(); err != nil {
cfg.Logger.Error(err, "invalid configuration: %w", err)
cfg.Logger.Error(err, "invalid configuration")
return nil
}

if err := cfg.ParseModules(); err != nil {
cfg.Logger.Error(err, "invalid module configuration: %w", err)
cfg.Logger.Error(err, "invalid module configuration")
return nil
}

Expand Down

0 comments on commit fdf9416

Please sign in to comment.