Skip to content

Commit

Permalink
FIX: return file name in read config error
Browse files Browse the repository at this point in the history
  • Loading branch information
go-compile committed Aug 14, 2022
1 parent c6635a9 commit e070067
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/localrelay/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ func readRelayConfig(file string) (*Relay, error) {

var relay Relay
if err := toml.NewDecoder(f).Decode(&relay); err != nil {
return nil, err
return nil, errors.Wrapf(err, "file:%q", file)
}

return &relay, nil
Expand Down
2 changes: 1 addition & 1 deletion relay.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const (
ProxyUDP

// VERSION uses semantic versioning
VERSION = "v1.3.0"
VERSION = "v1.3.1"
)

var (
Expand Down

0 comments on commit e070067

Please sign in to comment.