Skip to content

Commit

Permalink
Fixes 331 and 332: Add continue (cosmos#344)
Browse files Browse the repository at this point in the history
* Add continue after encountering an error

* Fixes 331: Add continue
  • Loading branch information
PrathyushaLakkireddy authored Jan 5, 2021
1 parent 6ba534a commit 0ebe4cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/chains.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ func filesAdd(dir string) (cfg *Config, err error) {
continue
}
fmt.Printf("%s did not contain valid chain config, skipping...\n", pth)
continue

}
if err = cfg.AddChain(c); err != nil {
Expand Down
1 change: 1 addition & 0 deletions cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ func cfgFilesAdd(dir string) (cfg *Config, err error) {
p := &relayer.Path{}
if err = json.Unmarshal(byt, p); err != nil {
fmt.Printf("failed to unmarshal file %s, skipping...\n", pth)
continue
}

// In the case that order isn't added to the path, add it manually
Expand Down

0 comments on commit 0ebe4cf

Please sign in to comment.