{"action":"closed","issue":{"url":"https://api.github.com/repos/Particular/NServiceBus.Host/issues/112","repository_url":"https://api.github.com/repos/Particular/NServiceBus.Host","labels_url":"https://api.github.com/repos/Particular/NServiceBus.Host/issues/112/labels{/name}","comments_url":"https://api.github.com/repos/Particular/NServiceBus.Host/issues/112/comments","events_url":"https://api.github.com/repos/Particular/NServiceBus.Host/issues/112/events","html_url":"https://github.com/Particular/NServiceBus.Host/issues/112","id":190453958,"node_id":"MDU6SXNzdWUxOTA0NTM5NTg=","number":112,"title":"installer errors should be written to Console.Error and set Environment.ExitCode","user":{"login":"SimonCropp","id":122666,"node_id":"MDQ6VXNlcjEyMjY2Ng==","avatar_url":"https://avatars1.githubusercontent.com/u/122666?v=4","gravatar_id":"","url":"https://api.github.com/users/SimonCropp","html_url":"https://github.com/SimonCropp","followers_url":"https://api.github.com/users/SimonCropp/followers","following_url":"https://api.github.com/users/SimonCropp/following{/other_user}","gists_url":"https://api.github.com/users/SimonCropp/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonCropp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonCropp/subscriptions","organizations_url":"https://api.github.com/users/SimonCropp/orgs","repos_url":"https://api.github.com/users/SimonCropp/repos","events_url":"https://api.github.com/users/SimonCropp/events{/privacy}","received_events_url":"https://api.github.com/users/SimonCropp/received_events","type":"User","site_admin":false},"labels":[{"id":535791310,"node_id":"MDU6TGFiZWw1MzU3OTEzMTA=","url":"https://api.github.com/repos/Particular/NServiceBus.Host/labels/Size:%20S(%3C4d)","name":"Size: S(<4d)","color":"B6FF00","default":false},{"id":263506280,"node_id":"MDU6TGFiZWwyNjM1MDYyODA=","url":"https://api.github.com/repos/Particular/NServiceBus.Host/labels/Type:%20Refactoring","name":"Type: Refactoring","color":"d7e102","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Particular/NServiceBus.Host/milestones/6","html_url":"https://github.com/Particular/NServiceBus.Host/milestone/6","labels_url":"https://api.github.com/repos/Particular/NServiceBus.Host/milestones/6/labels","id":2311675,"node_id":"MDk6TWlsZXN0b25lMjMxMTY3NQ==","number":6,"title":"7.1.0","description":"","creator":{"login":"ramonsmits","id":152998,"node_id":"MDQ6VXNlcjE1Mjk5OA==","avatar_url":"https://avatars1.githubusercontent.com/u/152998?v=4","gravatar_id":"","url":"https://api.github.com/users/ramonsmits","html_url":"https://github.com/ramonsmits","followers_url":"https://api.github.com/users/ramonsmits/followers","following_url":"https://api.github.com/users/ramonsmits/following{/other_user}","gists_url":"https://api.github.com/users/ramonsmits/gists{/gist_id}","starred_url":"https://api.github.com/users/ramonsmits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramonsmits/subscriptions","organizations_url":"https://api.github.com/users/ramonsmits/orgs","repos_url":"https://api.github.com/users/ramonsmits/repos","events_url":"https://api.github.com/users/ramonsmits/events{/privacy}","received_events_url":"https://api.github.com/users/ramonsmits/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":1,"state":"open","created_at":"2017-02-09T11:45:05Z","updated_at":"2018-08-15T12:39:16Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-11-19T00:32:55Z","updated_at":"2018-08-15T12:39:16Z","closed_at":"2018-08-15T12:39:16Z","author_association":"CONTRIBUTOR","body":"So here https://github.com/Particular/NServiceBus.Host/blob/develop/src/NServiceBus.Hosting.Windows/Installers/WindowsInstaller.cs#L62\r\n\r\nWhen an exception occurs we do a `Console.Write`\r\n\r\n            try\r\n            {\r\n                host.Install(username);\r\n            }\r\n            catch (Exception ex)\r\n            {\r\n                //need to suppress here in order to avoid infinite loop\r\n                Console.WriteLine(\"Failed to execute installers: \" +ex);  \r\n            }\r\n\r\nshouldnt we do a `Console.Error.WriteLine` ? and set the `Environment.ExitCode`?\r\n\r\nraised in stack overflow http://stackoverflow.com/questions/40674465/capturing-errors-when-installing-nservicebus-service-in-powershell"}}
{"actor":{"display_login":"SimonCropp"}}