Skip to content

Commit

Permalink
fix: remove fatal error so can properly capture and handle error down…
Browse files Browse the repository at this point in the history
…stream

references #165
  • Loading branch information
dpastoor committed Oct 17, 2019
1 parent f1b8a06 commit a4e2b7b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions cran/pkg_nexus.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,15 @@ func NewPkgDb(urls []RepoURL, dst SourceType, cfgdb *InstallConfig, rv RVersion)
for i := 0; i < len(urls); i++ {
result := <-rdbc
if result.Err != nil {
//
log.Fatalf("error downloading repo information from: %s:%s\n", result.Url.Name, result.Url.URL)
// ran into an error here when downloading on multiple versions of R on windows
// within the 1 hr cache time, using the same pkgr.yml minus the Rpath/lib
// simply changing the offending repo name to something else, eg MPN2 vs MPN
// caused it to then run successfully
log.WithFields(log.Fields{
"repo": result.Url.Name,
"url": result.Url.URL,
"error": err,
}).Error("error downloading repo information")
err = result.Err
} else {
pkgNexus.Db[result.repoIndex] = result.Rdb
Expand Down

0 comments on commit a4e2b7b

Please sign in to comment.