Octo.exe should return a non-zero exit/return code on error

Octo.exe should return a non-zero exit/return code on error so that scripts/builds can detect that not all has gone well. Eg:

Handshake successful. Octopus version: 0.9.620.4
[23:20:42]Finding environments...
[23:20:42]Finding steps for project...
[23:20:43]Getting latest package versions for each step...
[23:22:23]The operation has timed out
[23:22:23]System.Net.WebException: The operation has timed out
[23:22:23]   at System.Net.HttpWebRequest.GetResponse()
[23:22:23]   at OctopusTools.Client.OctopusSession.Get[TResource](String path)
[23:22:23]   at OctopusTools.Client.OctopusSession.List[TResource](String path)
[23:22:23]   at ProjectExtensions.GetLatestPackageForStep(IOctopusSession session, Step step)
[23:22:23]   at OctopusTools.Commands.CreateReleaseCommand.Execute()
[23:22:23]   at OctopusTools.Infrastructure.CommandProcessor.Process(String[] args)
[23:22:23]Process exited with code 0

Thanks Robert, I saw Pawel has also hit this issue - I’ll merge that change too.

Paul