{"action":"created","issue":{"url":"https://api.github.com/repos/sindresorhus/speed-test/issues/24","labels_url":"https://api.github.com/repos/sindresorhus/speed-test/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/sindresorhus/speed-test/issues/24/comments","events_url":"https://api.github.com/repos/sindresorhus/speed-test/issues/24/events","html_url":"https://github.com/sindresorhus/speed-test/pull/24","id":114221303,"number":24,"title":"Print user-friendly error if internet is down","user":{"login":"SamVerschueren","id":1913805,"avatar_url":"https://avatars.githubusercontent.com/u/1913805?v=3","gravatar_id":"","url":"https://api.github.com/users/SamVerschueren","html_url":"https://github.com/SamVerschueren","followers_url":"https://api.github.com/users/SamVerschueren/followers","following_url":"https://api.github.com/users/SamVerschueren/following{/other_user}","gists_url":"https://api.github.com/users/SamVerschueren/gists{/gist_id}","starred_url":"https://api.github.com/users/SamVerschueren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SamVerschueren/subscriptions","organizations_url":"https://api.github.com/users/SamVerschueren/orgs","repos_url":"https://api.github.com/users/SamVerschueren/repos","events_url":"https://api.github.com/users/SamVerschueren/events{/privacy}","received_events_url":"https://api.github.com/users/SamVerschueren/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-30T08:07:51Z","updated_at":"2015-10-30T18:21:31Z","closed_at":"2015-10-30T18:16:18Z","pull_request":{"url":"https://api.github.com/repos/sindresorhus/speed-test/pulls/24","html_url":"https://github.com/sindresorhus/speed-test/pull/24","diff_url":"https://github.com/sindresorhus/speed-test/pull/24.diff","patch_url":"https://github.com/sindresorhus/speed-test/pull/24.patch"},"body":"Yesterday my internet seemed very slow so I used `speed-test` to test it. It seemed my internet connection was down entirely and it couldn't reach the speed-test servers.\r\n\r\n```\r\n{ [Error: getaddrinfo ENOTFOUND www.speedtest.net www.speedtest.net:80]\r\n  code: 'ENOTFOUND',\r\n  errno: 'ENOTFOUND',\r\n  syscall: 'getaddrinfo',\r\n  hostname: 'www.speedtest.net',\r\n  host: 'www.speedtest.net',\r\n  port: 80 }\r\n```\r\n\r\nSo I thought it would be a good idea to show a more user-friendly error if this happens. Feel free to suggest another error message or to not merge at all :)."},"comment":{"url":"https://api.github.com/repos/sindresorhus/speed-test/issues/comments/152608225","html_url":"https://github.com/sindresorhus/speed-test/pull/24#issuecomment-152608225","issue_url":"https://api.github.com/repos/sindresorhus/speed-test/issues/24","id":152608225,"user":{"login":"vasco3","id":804301,"avatar_url":"https://avatars.githubusercontent.com/u/804301?v=3","gravatar_id":"","url":"https://api.github.com/users/vasco3","html_url":"https://github.com/vasco3","followers_url":"https://api.github.com/users/vasco3/followers","following_url":"https://api.github.com/users/vasco3/following{/other_user}","gists_url":"https://api.github.com/users/vasco3/gists{/gist_id}","starred_url":"https://api.github.com/users/vasco3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vasco3/subscriptions","organizations_url":"https://api.github.com/users/vasco3/orgs","repos_url":"https://api.github.com/users/vasco3/repos","events_url":"https://api.github.com/users/vasco3/events{/privacy}","received_events_url":"https://api.github.com/users/vasco3/received_events","type":"User","site_admin":false},"created_at":"2015-10-30T18:21:31Z","updated_at":"2015-10-30T18:21:31Z","body":"just wondering, why was this PR closed? kind of discouraging for future contributions if there is no feedback on why it was rejected"}}