{"action":"closed","number":8,"pull_request":{"url":"https://api.github.com/repos/jolby/colors/pulls/8","id":37044300,"html_url":"https://github.com/jolby/colors/pull/8","diff_url":"https://github.com/jolby/colors/pull/8.diff","patch_url":"https://github.com/jolby/colors/pull/8.patch","issue_url":"https://api.github.com/repos/jolby/colors/issues/8","number":8,"state":"closed","locked":false,"title":"More informative exception","user":{"login":"brunchboy","id":2228869,"avatar_url":"https://avatars.githubusercontent.com/u/2228869?v=3","gravatar_id":"","url":"https://api.github.com/users/brunchboy","html_url":"https://github.com/brunchboy","followers_url":"https://api.github.com/users/brunchboy/followers","following_url":"https://api.github.com/users/brunchboy/following{/other_user}","gists_url":"https://api.github.com/users/brunchboy/gists{/gist_id}","starred_url":"https://api.github.com/users/brunchboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunchboy/subscriptions","organizations_url":"https://api.github.com/users/brunchboy/orgs","repos_url":"https://api.github.com/users/brunchboy/repos","events_url":"https://api.github.com/users/brunchboy/events{/privacy}","received_events_url":"https://api.github.com/users/brunchboy/received_events","type":"User","site_admin":false},"body":"I kept getting confused by stack traces like the one below when I tried using a keyword like `:amber` to create a color, which happened to not be in the palette. This change throws a much easier to understand `IllegalArgumentException` with the string \"Unrecognized color, amber\".\r\n\r\n```\r\n                  Numbers.java: 1089  clojure.lang.Numbers/bitOpsCast\r\n                  Numbers.java:  391  clojure.lang.Numbers/shiftRight\r\n                    colors.clj:  456  com.evocomputing.colors/rgb-int-to-components/iter/fn/fn\r\n                    colors.clj:  454  com.evocomputing.colors/rgb-int-to-components/iter/fn\r\n                  LazySeq.java:   40  clojure.lang.LazySeq/sval\r\n                  LazySeq.java:   49  clojure.lang.LazySeq/seq\r\n                       RT.java:  507  clojure.lang.RT/seq\r\n                      core.clj:  135  clojure.core/seq\r\n                      core.clj:  901  clojure.core/reduce1\r\n                      core.clj:  915  clojure.core/reverse\r\n                    colors.clj:  453  com.evocomputing.colors/rgb-int-to-components\r\n                    colors.clj:  462  com.evocomputing.colors/rgba-int-to-components\r\n                    colors.clj:  332  com.evocomputing.colors/eval4604/fn\r\n                  MultiFn.java:  229  clojure.lang.MultiFn/invoke\r\n                          REPL:    1  afterglow.controllers.ableton-push/eval40407\r\n```","created_at":"2015-06-05T15:52:09Z","updated_at":"2015-06-05T16:14:06Z","closed_at":"2015-06-05T16:14:06Z","merged_at":"2015-06-05T16:14:06Z","merge_commit_sha":"13c7d80599b0c131cb7533afe3862ca4b00d641a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jolby/colors/pulls/8/commits","review_comments_url":"https://api.github.com/repos/jolby/colors/pulls/8/comments","review_comment_url":"https://api.github.com/repos/jolby/colors/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jolby/colors/issues/8/comments","statuses_url":"https://api.github.com/repos/jolby/colors/statuses/bf1528ab3bc275c83314684b907310c595d286cc","head":{"label":"brunchboy:more-informative-exception","ref":"more-informative-exception","sha":"bf1528ab3bc275c83314684b907310c595d286cc","user":{"login":"brunchboy","id":2228869,"avatar_url":"https://avatars.githubusercontent.com/u/2228869?v=3","gravatar_id":"","url":"https://api.github.com/users/brunchboy","html_url":"https://github.com/brunchboy","followers_url":"https://api.github.com/users/brunchboy/followers","following_url":"https://api.github.com/users/brunchboy/following{/other_user}","gists_url":"https://api.github.com/users/brunchboy/gists{/gist_id}","starred_url":"https://api.github.com/users/brunchboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunchboy/subscriptions","organizations_url":"https://api.github.com/users/brunchboy/orgs","repos_url":"https://api.github.com/users/brunchboy/repos","events_url":"https://api.github.com/users/brunchboy/events{/privacy}","received_events_url":"https://api.github.com/users/brunchboy/received_events","type":"User","site_admin":false},"repo":{"id":34360973,"name":"colors","full_name":"brunchboy/colors","owner":{"login":"brunchboy","id":2228869,"avatar_url":"https://avatars.githubusercontent.com/u/2228869?v=3","gravatar_id":"","url":"https://api.github.com/users/brunchboy","html_url":"https://github.com/brunchboy","followers_url":"https://api.github.com/users/brunchboy/followers","following_url":"https://api.github.com/users/brunchboy/following{/other_user}","gists_url":"https://api.github.com/users/brunchboy/gists{/gist_id}","starred_url":"https://api.github.com/users/brunchboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunchboy/subscriptions","organizations_url":"https://api.github.com/users/brunchboy/orgs","repos_url":"https://api.github.com/users/brunchboy/repos","events_url":"https://api.github.com/users/brunchboy/events{/privacy}","received_events_url":"https://api.github.com/users/brunchboy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brunchboy/colors","description":"Color and colorspace calculation, manipulation and conversion in Clojure.","fork":true,"url":"https://api.github.com/repos/brunchboy/colors","forks_url":"https://api.github.com/repos/brunchboy/colors/forks","keys_url":"https://api.github.com/repos/brunchboy/colors/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brunchboy/colors/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brunchboy/colors/teams","hooks_url":"https://api.github.com/repos/brunchboy/colors/hooks","issue_events_url":"https://api.github.com/repos/brunchboy/colors/issues/events{/number}","events_url":"https://api.github.com/repos/brunchboy/colors/events","assignees_url":"https://api.github.com/repos/brunchboy/colors/assignees{/user}","branches_url":"https://api.github.com/repos/brunchboy/colors/branches{/branch}","tags_url":"https://api.github.com/repos/brunchboy/colors/tags","blobs_url":"https://api.github.com/repos/brunchboy/colors/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brunchboy/colors/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brunchboy/colors/git/refs{/sha}","trees_url":"https://api.github.com/repos/brunchboy/colors/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brunchboy/colors/statuses/{sha}","languages_url":"https://api.github.com/repos/brunchboy/colors/languages","stargazers_url":"https://api.github.com/repos/brunchboy/colors/stargazers","contributors_url":"https://api.github.com/repos/brunchboy/colors/contributors","subscribers_url":"https://api.github.com/repos/brunchboy/colors/subscribers","subscription_url":"https://api.github.com/repos/brunchboy/colors/subscription","commits_url":"https://api.github.com/repos/brunchboy/colors/commits{/sha}","git_commits_url":"https://api.github.com/repos/brunchboy/colors/git/commits{/sha}","comments_url":"https://api.github.com/repos/brunchboy/colors/comments{/number}","issue_comment_url":"https://api.github.com/repos/brunchboy/colors/issues/comments{/number}","contents_url":"https://api.github.com/repos/brunchboy/colors/contents/{+path}","compare_url":"https://api.github.com/repos/brunchboy/colors/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brunchboy/colors/merges","archive_url":"https://api.github.com/repos/brunchboy/colors/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brunchboy/colors/downloads","issues_url":"https://api.github.com/repos/brunchboy/colors/issues{/number}","pulls_url":"https://api.github.com/repos/brunchboy/colors/pulls{/number}","milestones_url":"https://api.github.com/repos/brunchboy/colors/milestones{/number}","notifications_url":"https://api.github.com/repos/brunchboy/colors/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brunchboy/colors/labels{/name}","releases_url":"https://api.github.com/repos/brunchboy/colors/releases{/id}","created_at":"2015-04-22T01:14:29Z","updated_at":"2015-05-20T06:58:51Z","pushed_at":"2015-06-05T16:12:13Z","git_url":"git://github.com/brunchboy/colors.git","ssh_url":"git@github.com:brunchboy/colors.git","clone_url":"https://github.com/brunchboy/colors.git","svn_url":"https://github.com/brunchboy/colors","homepage":"http://github.com/jolby/colors","size":216,"stargazers_count":1,"watchers_count":1,"language":"Clojure","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"jolby:master","ref":"master","sha":"29559e318e32157814964b946aab7a3461829510","user":{"login":"jolby","id":47862,"avatar_url":"https://avatars.githubusercontent.com/u/47862?v=3","gravatar_id":"","url":"https://api.github.com/users/jolby","html_url":"https://github.com/jolby","followers_url":"https://api.github.com/users/jolby/followers","following_url":"https://api.github.com/users/jolby/following{/other_user}","gists_url":"https://api.github.com/users/jolby/gists{/gist_id}","starred_url":"https://api.github.com/users/jolby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jolby/subscriptions","organizations_url":"https://api.github.com/users/jolby/orgs","repos_url":"https://api.github.com/users/jolby/repos","events_url":"https://api.github.com/users/jolby/events{/privacy}","received_events_url":"https://api.github.com/users/jolby/received_events","type":"User","site_admin":false},"repo":{"id":503222,"name":"colors","full_name":"jolby/colors","owner":{"login":"jolby","id":47862,"avatar_url":"https://avatars.githubusercontent.com/u/47862?v=3","gravatar_id":"","url":"https://api.github.com/users/jolby","html_url":"https://github.com/jolby","followers_url":"https://api.github.com/users/jolby/followers","following_url":"https://api.github.com/users/jolby/following{/other_user}","gists_url":"https://api.github.com/users/jolby/gists{/gist_id}","starred_url":"https://api.github.com/users/jolby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jolby/subscriptions","organizations_url":"https://api.github.com/users/jolby/orgs","repos_url":"https://api.github.com/users/jolby/repos","events_url":"https://api.github.com/users/jolby/events{/privacy}","received_events_url":"https://api.github.com/users/jolby/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jolby/colors","description":"Color and colorspace calculation, manipulation and conversion in Clojure.","fork":false,"url":"https://api.github.com/repos/jolby/colors","forks_url":"https://api.github.com/repos/jolby/colors/forks","keys_url":"https://api.github.com/repos/jolby/colors/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jolby/colors/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jolby/colors/teams","hooks_url":"https://api.github.com/repos/jolby/colors/hooks","issue_events_url":"https://api.github.com/repos/jolby/colors/issues/events{/number}","events_url":"https://api.github.com/repos/jolby/colors/events","assignees_url":"https://api.github.com/repos/jolby/colors/assignees{/user}","branches_url":"https://api.github.com/repos/jolby/colors/branches{/branch}","tags_url":"https://api.github.com/repos/jolby/colors/tags","blobs_url":"https://api.github.com/repos/jolby/colors/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jolby/colors/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jolby/colors/git/refs{/sha}","trees_url":"https://api.github.com/repos/jolby/colors/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jolby/colors/statuses/{sha}","languages_url":"https://api.github.com/repos/jolby/colors/languages","stargazers_url":"https://api.github.com/repos/jolby/colors/stargazers","contributors_url":"https://api.github.com/repos/jolby/colors/contributors","subscribers_url":"https://api.github.com/repos/jolby/colors/subscribers","subscription_url":"https://api.github.com/repos/jolby/colors/subscription","commits_url":"https://api.github.com/repos/jolby/colors/commits{/sha}","git_commits_url":"https://api.github.com/repos/jolby/colors/git/commits{/sha}","comments_url":"https://api.github.com/repos/jolby/colors/comments{/number}","issue_comment_url":"https://api.github.com/repos/jolby/colors/issues/comments{/number}","contents_url":"https://api.github.com/repos/jolby/colors/contents/{+path}","compare_url":"https://api.github.com/repos/jolby/colors/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jolby/colors/merges","archive_url":"https://api.github.com/repos/jolby/colors/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jolby/colors/downloads","issues_url":"https://api.github.com/repos/jolby/colors/issues{/number}","pulls_url":"https://api.github.com/repos/jolby/colors/pulls{/number}","milestones_url":"https://api.github.com/repos/jolby/colors/milestones{/number}","notifications_url":"https://api.github.com/repos/jolby/colors/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jolby/colors/labels{/name}","releases_url":"https://api.github.com/repos/jolby/colors/releases{/id}","created_at":"2010-02-05T01:09:08Z","updated_at":"2015-05-09T07:42:37Z","pushed_at":"2015-06-05T16:14:09Z","git_url":"git://github.com/jolby/colors.git","ssh_url":"git@github.com:jolby/colors.git","clone_url":"https://github.com/jolby/colors.git","svn_url":"https://github.com/jolby/colors","homepage":"http://github.com/jolby/colors","size":230,"stargazers_count":21,"watchers_count":21,"language":"Clojure","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":3,"mirror_url":null,"open_issues_count":0,"forks":3,"open_issues":0,"watchers":21,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jolby/colors/pulls/8"},"html":{"href":"https://github.com/jolby/colors/pull/8"},"issue":{"href":"https://api.github.com/repos/jolby/colors/issues/8"},"comments":{"href":"https://api.github.com/repos/jolby/colors/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/jolby/colors/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/jolby/colors/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jolby/colors/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/jolby/colors/statuses/bf1528ab3bc275c83314684b907310c595d286cc"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"jolby","id":47862,"avatar_url":"https://avatars.githubusercontent.com/u/47862?v=3","gravatar_id":"","url":"https://api.github.com/users/jolby","html_url":"https://github.com/jolby","followers_url":"https://api.github.com/users/jolby/followers","following_url":"https://api.github.com/users/jolby/following{/other_user}","gists_url":"https://api.github.com/users/jolby/gists{/gist_id}","starred_url":"https://api.github.com/users/jolby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jolby/subscriptions","organizations_url":"https://api.github.com/users/jolby/orgs","repos_url":"https://api.github.com/users/jolby/repos","events_url":"https://api.github.com/users/jolby/events{/privacy}","received_events_url":"https://api.github.com/users/jolby/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":9,"additions":13,"deletions":4,"changed_files":3}}