Skip to content

Commit

Permalink
ir: improve error messages during configuration validation (#3072)
Browse files Browse the repository at this point in the history
Now it is clear that the error is related to reading the config.
  • Loading branch information
roman-khimov authored Dec 27, 2024
2 parents e75fda2 + 40b3260 commit fb304b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Changelog for NeoFS Node

### Fixed
- `neofs-cli object delete` command output (#3056)
- Make the error message more clearer when validating IR configuration (#3072)

### Changed
- Number of cuncurrenly handled notifications from the chain was increased from 10 to 300 for IR (#3068)
Expand Down
3 changes: 2 additions & 1 deletion cmd/neofs-ir/defaults.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package main

import (
"fmt"
"strings"
"time"

Expand Down Expand Up @@ -37,7 +38,7 @@ func newConfig(path string) (*viper.Viper, error) {

err = validate.ValidateStruct(v)
if err != nil {
return nil, err
return nil, fmt.Errorf("failed config validation: %w", err)
}

return v, nil
Expand Down

0 comments on commit fb304b4

Please sign in to comment.