Skip to content

Commit fe9149e

Browse files
authored
Merge pull request ActiveState#3354 from ActiveState/mitchell/dx-2887
If the remote installer could not get an install payload, but no error happened, show a helpful error message.
2 parents f0bc79e + b21041f commit fe9149e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmd/state-remote-installer/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,8 @@ func execute(out output.Outputer, prompt prompt.Prompter, cfg *config.Instance,
194194
availableUpdate, err := checker.CheckFor(channel, params.version)
195195
if err != nil {
196196
return errs.Wrap(err, "Could not retrieve install package information")
197+
} else if availableUpdate == nil {
198+
return locale.NewError("remote_install_no_available_update", "Could not find installer to download. This could be due to networking issues or temporary maintenance. Please try again later.")
197199
}
198200

199201
version := availableUpdate.Version

0 commit comments

Comments
 (0)