{"action":"opened","issue":{"url":"https://api.github.com/repos/indutny/core2dump/issues/9","labels_url":"https://api.github.com/repos/indutny/core2dump/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/indutny/core2dump/issues/9/comments","events_url":"https://api.github.com/repos/indutny/core2dump/issues/9/events","html_url":"https://github.com/indutny/core2dump/issues/9","id":129551482,"number":9,"title":"builds on unsupported platforms, but always aborts without explanation","user":{"login":"davepacheco","id":532688,"avatar_url":"https://avatars.githubusercontent.com/u/532688?v=3","gravatar_id":"","url":"https://api.github.com/users/davepacheco","html_url":"https://github.com/davepacheco","followers_url":"https://api.github.com/users/davepacheco/followers","following_url":"https://api.github.com/users/davepacheco/following{/other_user}","gists_url":"https://api.github.com/users/davepacheco/gists{/gist_id}","starred_url":"https://api.github.com/users/davepacheco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davepacheco/subscriptions","organizations_url":"https://api.github.com/users/davepacheco/orgs","repos_url":"https://api.github.com/users/davepacheco/repos","events_url":"https://api.github.com/users/davepacheco/events{/privacy}","received_events_url":"https://api.github.com/users/davepacheco/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-28T19:22:20Z","updated_at":"2016-01-28T19:22:20Z","closed_at":null,"body":"I built core2dump on illumos, but it just dumps core itself.  This block in cli.c is kind of a trap for unsupported platforms:\r\n\r\nhttps://github.com/indutny/core2dump/blob/40d00671244bc35ed4579124f8c4d830ae1f6102/src/cli.c#L169-L175\r\n\r\nI don't assume the tool will necessarily work on unsupported platforms, of course, but in this case, the code already detects that the platform is not supported.  Could this be changed to an `#error` directive so that the build fails?  Right now, it produces a binary that's effectively hardcoded to dump core without any error message."}}