Skip to content

Commit

Permalink
Fixed returning when updating compiler list (#341)
Browse files Browse the repository at this point in the history
* Fixed returning when updating compiler list

* Added error wrapping to the output
  • Loading branch information
ADRFranklin authored May 8, 2020
1 parent c718f14 commit df56f6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion download/compiler_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ func GetCompilerList(cacheDir string) (compilers types.Compilers, err error) {
fmt.Fprintln(os.Stderr, "updating compiler list...") // nolint:gas
err = UpdateCompilerList(cacheDir)
if err != nil {
return
fmt.Fprintln(os.Stderr, errors.Wrap(err, "failed to update compiler list"))
err = nil
}
}

Expand Down

0 comments on commit df56f6c

Please sign in to comment.