Skip to content

Commit

Permalink
wrap error
Browse files Browse the repository at this point in the history
  • Loading branch information
leonz789 committed Dec 27, 2024
1 parent a66c727 commit 9052596
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fetcher/chainlink/chainlink.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func isContractAddress(addr string, client *ethclient.Client) bool {
func (s *source) reload(cfgPath string, token string) error {
cfg, err := parseConfig(cfgPath)
if err != nil {
return errors.New("failed to parse config file")
return fmt.Errorf("failed to parse config file, error:%w", err)
}
// add new network from config file
for network, url := range cfg.URLs {
Expand Down

0 comments on commit 9052596

Please sign in to comment.