{"action":"created","issue":{"url":"https://api.github.com/repos/elixir-lang/elixir/issues/4965","repository_url":"https://api.github.com/repos/elixir-lang/elixir","labels_url":"https://api.github.com/repos/elixir-lang/elixir/issues/4965/labels{/name}","comments_url":"https://api.github.com/repos/elixir-lang/elixir/issues/4965/comments","events_url":"https://api.github.com/repos/elixir-lang/elixir/issues/4965/events","html_url":"https://github.com/elixir-lang/elixir/pull/4965","id":164547593,"number":4965,"title":"Improve error message on bad return in Map.get_and_update/3","user":{"login":"blambi","id":778597,"avatar_url":"https://avatars.githubusercontent.com/u/778597?v=3","gravatar_id":"","url":"https://api.github.com/users/blambi","html_url":"https://github.com/blambi","followers_url":"https://api.github.com/users/blambi/followers","following_url":"https://api.github.com/users/blambi/following{/other_user}","gists_url":"https://api.github.com/users/blambi/gists{/gist_id}","starred_url":"https://api.github.com/users/blambi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blambi/subscriptions","organizations_url":"https://api.github.com/users/blambi/orgs","repos_url":"https://api.github.com/users/blambi/repos","events_url":"https://api.github.com/users/blambi/events{/privacy}","received_events_url":"https://api.github.com/users/blambi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"whatyouhide","id":3890250,"avatar_url":"https://avatars.githubusercontent.com/u/3890250?v=3","gravatar_id":"","url":"https://api.github.com/users/whatyouhide","html_url":"https://github.com/whatyouhide","followers_url":"https://api.github.com/users/whatyouhide/followers","following_url":"https://api.github.com/users/whatyouhide/following{/other_user}","gists_url":"https://api.github.com/users/whatyouhide/gists{/gist_id}","starred_url":"https://api.github.com/users/whatyouhide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whatyouhide/subscriptions","organizations_url":"https://api.github.com/users/whatyouhide/orgs","repos_url":"https://api.github.com/users/whatyouhide/repos","events_url":"https://api.github.com/users/whatyouhide/events{/privacy}","received_events_url":"https://api.github.com/users/whatyouhide/received_events","type":"User","site_admin":false},"assignees":[{"login":"whatyouhide","id":3890250,"avatar_url":"https://avatars.githubusercontent.com/u/3890250?v=3","gravatar_id":"","url":"https://api.github.com/users/whatyouhide","html_url":"https://github.com/whatyouhide","followers_url":"https://api.github.com/users/whatyouhide/followers","following_url":"https://api.github.com/users/whatyouhide/following{/other_user}","gists_url":"https://api.github.com/users/whatyouhide/gists{/gist_id}","starred_url":"https://api.github.com/users/whatyouhide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whatyouhide/subscriptions","organizations_url":"https://api.github.com/users/whatyouhide/orgs","repos_url":"https://api.github.com/users/whatyouhide/repos","events_url":"https://api.github.com/users/whatyouhide/events{/privacy}","received_events_url":"https://api.github.com/users/whatyouhide/received_events","type":"User","site_admin":false}],"milestone":null,"comments":9,"created_at":"2016-07-08T14:50:11Z","updated_at":"2016-07-10T15:49:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/elixir-lang/elixir/pulls/4965","html_url":"https://github.com/elixir-lang/elixir/pull/4965","diff_url":"https://github.com/elixir-lang/elixir/pull/4965.diff","patch_url":"https://github.com/elixir-lang/elixir/pull/4965.patch"},"body":"Current error message is quite unhelpful for new comers\r\n\r\n    Map.get_and_update(%{a: 1}, :a, fn value -> value end)\r\n    ** (MatchError) no match of right hand side value: 1\r\n        (elixir) lib/map.ex:513: Map.get_and_update/3\r\n\r\nThis change introduces an improved message:\r\n\r\n    ** (RuntimeError) must return a two-element tuple or :pop, got: 1\r\n        (elixir) lib/map.ex:699: Map.get_and_update/3\r\n"},"comment":{"url":"https://api.github.com/repos/elixir-lang/elixir/issues/comments/231595758","html_url":"https://github.com/elixir-lang/elixir/pull/4965#issuecomment-231595758","issue_url":"https://api.github.com/repos/elixir-lang/elixir/issues/4965","id":231595758,"user":{"login":"eksperimental","id":9133420,"avatar_url":"https://avatars.githubusercontent.com/u/9133420?v=3","gravatar_id":"","url":"https://api.github.com/users/eksperimental","html_url":"https://github.com/eksperimental","followers_url":"https://api.github.com/users/eksperimental/followers","following_url":"https://api.github.com/users/eksperimental/following{/other_user}","gists_url":"https://api.github.com/users/eksperimental/gists{/gist_id}","starred_url":"https://api.github.com/users/eksperimental/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eksperimental/subscriptions","organizations_url":"https://api.github.com/users/eksperimental/orgs","repos_url":"https://api.github.com/users/eksperimental/repos","events_url":"https://api.github.com/users/eksperimental/events{/privacy}","received_events_url":"https://api.github.com/users/eksperimental/received_events","type":"User","site_admin":false},"created_at":"2016-07-10T15:49:50Z","updated_at":"2016-07-10T15:49:50Z","body":"Since \"pop:\" and \"got:\" look very similar. Its weird having them together. Would it make sense that the message mentions first :pop?"}}
{"actor":{"display_login":"eksperimental"}}