{"action":"opened","number":24,"pull_request":{"url":"https://api.github.com/repos/openexchangerates/money.js/pulls/24","id":53565823,"html_url":"https://github.com/openexchangerates/money.js/pull/24","diff_url":"https://github.com/openexchangerates/money.js/pull/24.diff","patch_url":"https://github.com/openexchangerates/money.js/pull/24.patch","issue_url":"https://api.github.com/repos/openexchangerates/money.js/issues/24","number":24,"state":"open","locked":false,"title":"Throw actual Error instance and improve error message","user":{"login":"ragulka","id":593267,"avatar_url":"https://avatars.githubusercontent.com/u/593267?v=3","gravatar_id":"","url":"https://api.github.com/users/ragulka","html_url":"https://github.com/ragulka","followers_url":"https://api.github.com/users/ragulka/followers","following_url":"https://api.github.com/users/ragulka/following{/other_user}","gists_url":"https://api.github.com/users/ragulka/gists{/gist_id}","starred_url":"https://api.github.com/users/ragulka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ragulka/subscriptions","organizations_url":"https://api.github.com/users/ragulka/orgs","repos_url":"https://api.github.com/users/ragulka/repos","events_url":"https://api.github.com/users/ragulka/events{/privacy}","received_events_url":"https://api.github.com/users/ragulka/received_events","type":"User","site_admin":false},"body":"Related to #8 and #13\r\n\r\nOnly `Error` instances in JavaScript provide a stack - this is why there is no stack available, because a simple string is thrown. This PR addresses this issue by throwing an actual `Error` instance and providing a more detail error message, such as: `Cannot convert EUR to USD: exchange rate for USD is missing`.","created_at":"2015-12-14T13:42:53Z","updated_at":"2015-12-14T13:42:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openexchangerates/money.js/pulls/24/commits","review_comments_url":"https://api.github.com/repos/openexchangerates/money.js/pulls/24/comments","review_comment_url":"https://api.github.com/repos/openexchangerates/money.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openexchangerates/money.js/issues/24/comments","statuses_url":"https://api.github.com/repos/openexchangerates/money.js/statuses/c76476456f1acef18c0b2441d36de3f55ae3650b","head":{"label":"sliptree:throw-error","ref":"throw-error","sha":"c76476456f1acef18c0b2441d36de3f55ae3650b","user":{"login":"sliptree","id":5097101,"avatar_url":"https://avatars.githubusercontent.com/u/5097101?v=3","gravatar_id":"","url":"https://api.github.com/users/sliptree","html_url":"https://github.com/sliptree","followers_url":"https://api.github.com/users/sliptree/followers","following_url":"https://api.github.com/users/sliptree/following{/other_user}","gists_url":"https://api.github.com/users/sliptree/gists{/gist_id}","starred_url":"https://api.github.com/users/sliptree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sliptree/subscriptions","organizations_url":"https://api.github.com/users/sliptree/orgs","repos_url":"https://api.github.com/users/sliptree/repos","events_url":"https://api.github.com/users/sliptree/events{/privacy}","received_events_url":"https://api.github.com/users/sliptree/received_events","type":"Organization","site_admin":false},"repo":{"id":47976946,"name":"money.js","full_name":"sliptree/money.js","owner":{"login":"sliptree","id":5097101,"avatar_url":"https://avatars.githubusercontent.com/u/5097101?v=3","gravatar_id":"","url":"https://api.github.com/users/sliptree","html_url":"https://github.com/sliptree","followers_url":"https://api.github.com/users/sliptree/followers","following_url":"https://api.github.com/users/sliptree/following{/other_user}","gists_url":"https://api.github.com/users/sliptree/gists{/gist_id}","starred_url":"https://api.github.com/users/sliptree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sliptree/subscriptions","organizations_url":"https://api.github.com/users/sliptree/orgs","repos_url":"https://api.github.com/users/sliptree/repos","events_url":"https://api.github.com/users/sliptree/events{/privacy}","received_events_url":"https://api.github.com/users/sliptree/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sliptree/money.js","description":"money.js is a tiny (1kb) javascript currency conversion library, for web & nodeJS","fork":true,"url":"https://api.github.com/repos/sliptree/money.js","forks_url":"https://api.github.com/repos/sliptree/money.js/forks","keys_url":"https://api.github.com/repos/sliptree/money.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sliptree/money.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sliptree/money.js/teams","hooks_url":"https://api.github.com/repos/sliptree/money.js/hooks","issue_events_url":"https://api.github.com/repos/sliptree/money.js/issues/events{/number}","events_url":"https://api.github.com/repos/sliptree/money.js/events","assignees_url":"https://api.github.com/repos/sliptree/money.js/assignees{/user}","branches_url":"https://api.github.com/repos/sliptree/money.js/branches{/branch}","tags_url":"https://api.github.com/repos/sliptree/money.js/tags","blobs_url":"https://api.github.com/repos/sliptree/money.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sliptree/money.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sliptree/money.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/sliptree/money.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sliptree/money.js/statuses/{sha}","languages_url":"https://api.github.com/repos/sliptree/money.js/languages","stargazers_url":"https://api.github.com/repos/sliptree/money.js/stargazers","contributors_url":"https://api.github.com/repos/sliptree/money.js/contributors","subscribers_url":"https://api.github.com/repos/sliptree/money.js/subscribers","subscription_url":"https://api.github.com/repos/sliptree/money.js/subscription","commits_url":"https://api.github.com/repos/sliptree/money.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/sliptree/money.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/sliptree/money.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/sliptree/money.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/sliptree/money.js/contents/{+path}","compare_url":"https://api.github.com/repos/sliptree/money.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sliptree/money.js/merges","archive_url":"https://api.github.com/repos/sliptree/money.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sliptree/money.js/downloads","issues_url":"https://api.github.com/repos/sliptree/money.js/issues{/number}","pulls_url":"https://api.github.com/repos/sliptree/money.js/pulls{/number}","milestones_url":"https://api.github.com/repos/sliptree/money.js/milestones{/number}","notifications_url":"https://api.github.com/repos/sliptree/money.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sliptree/money.js/labels{/name}","releases_url":"https://api.github.com/repos/sliptree/money.js/releases{/id}","created_at":"2015-12-14T13:33:49Z","updated_at":"2015-12-14T13:33:50Z","pushed_at":"2015-12-14T13:40:12Z","git_url":"git://github.com/sliptree/money.js.git","ssh_url":"git@github.com:sliptree/money.js.git","clone_url":"https://github.com/sliptree/money.js.git","svn_url":"https://github.com/sliptree/money.js","homepage":"http://openexchangerates.github.io/money.js","size":310,"stargazers_count":0,"watchers_count":0,"language":"HTML","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":0,"default_branch":"master"}},"base":{"label":"openexchangerates:master","ref":"master","sha":"fcdfadaac5e6f74bd4e30d2cbb680bbcd46c3d4e","user":{"login":"openexchangerates","id":8118621,"avatar_url":"https://avatars.githubusercontent.com/u/8118621?v=3","gravatar_id":"","url":"https://api.github.com/users/openexchangerates","html_url":"https://github.com/openexchangerates","followers_url":"https://api.github.com/users/openexchangerates/followers","following_url":"https://api.github.com/users/openexchangerates/following{/other_user}","gists_url":"https://api.github.com/users/openexchangerates/gists{/gist_id}","starred_url":"https://api.github.com/users/openexchangerates/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openexchangerates/subscriptions","organizations_url":"https://api.github.com/users/openexchangerates/orgs","repos_url":"https://api.github.com/users/openexchangerates/repos","events_url":"https://api.github.com/users/openexchangerates/events{/privacy}","received_events_url":"https://api.github.com/users/openexchangerates/received_events","type":"Organization","site_admin":false},"repo":{"id":2557043,"name":"money.js","full_name":"openexchangerates/money.js","owner":{"login":"openexchangerates","id":8118621,"avatar_url":"https://avatars.githubusercontent.com/u/8118621?v=3","gravatar_id":"","url":"https://api.github.com/users/openexchangerates","html_url":"https://github.com/openexchangerates","followers_url":"https://api.github.com/users/openexchangerates/followers","following_url":"https://api.github.com/users/openexchangerates/following{/other_user}","gists_url":"https://api.github.com/users/openexchangerates/gists{/gist_id}","starred_url":"https://api.github.com/users/openexchangerates/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openexchangerates/subscriptions","organizations_url":"https://api.github.com/users/openexchangerates/orgs","repos_url":"https://api.github.com/users/openexchangerates/repos","events_url":"https://api.github.com/users/openexchangerates/events{/privacy}","received_events_url":"https://api.github.com/users/openexchangerates/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openexchangerates/money.js","description":"money.js is a tiny (1kb) javascript currency conversion library, for web & nodeJS","fork":false,"url":"https://api.github.com/repos/openexchangerates/money.js","forks_url":"https://api.github.com/repos/openexchangerates/money.js/forks","keys_url":"https://api.github.com/repos/openexchangerates/money.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openexchangerates/money.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openexchangerates/money.js/teams","hooks_url":"https://api.github.com/repos/openexchangerates/money.js/hooks","issue_events_url":"https://api.github.com/repos/openexchangerates/money.js/issues/events{/number}","events_url":"https://api.github.com/repos/openexchangerates/money.js/events","assignees_url":"https://api.github.com/repos/openexchangerates/money.js/assignees{/user}","branches_url":"https://api.github.com/repos/openexchangerates/money.js/branches{/branch}","tags_url":"https://api.github.com/repos/openexchangerates/money.js/tags","blobs_url":"https://api.github.com/repos/openexchangerates/money.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openexchangerates/money.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openexchangerates/money.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/openexchangerates/money.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openexchangerates/money.js/statuses/{sha}","languages_url":"https://api.github.com/repos/openexchangerates/money.js/languages","stargazers_url":"https://api.github.com/repos/openexchangerates/money.js/stargazers","contributors_url":"https://api.github.com/repos/openexchangerates/money.js/contributors","subscribers_url":"https://api.github.com/repos/openexchangerates/money.js/subscribers","subscription_url":"https://api.github.com/repos/openexchangerates/money.js/subscription","commits_url":"https://api.github.com/repos/openexchangerates/money.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/openexchangerates/money.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/openexchangerates/money.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/openexchangerates/money.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/openexchangerates/money.js/contents/{+path}","compare_url":"https://api.github.com/repos/openexchangerates/money.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openexchangerates/money.js/merges","archive_url":"https://api.github.com/repos/openexchangerates/money.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openexchangerates/money.js/downloads","issues_url":"https://api.github.com/repos/openexchangerates/money.js/issues{/number}","pulls_url":"https://api.github.com/repos/openexchangerates/money.js/pulls{/number}","milestones_url":"https://api.github.com/repos/openexchangerates/money.js/milestones{/number}","notifications_url":"https://api.github.com/repos/openexchangerates/money.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openexchangerates/money.js/labels{/name}","releases_url":"https://api.github.com/repos/openexchangerates/money.js/releases{/id}","created_at":"2011-10-11T17:54:05Z","updated_at":"2015-12-13T01:32:56Z","pushed_at":"2014-07-16T12:35:18Z","git_url":"git://github.com/openexchangerates/money.js.git","ssh_url":"git@github.com:openexchangerates/money.js.git","clone_url":"https://github.com/openexchangerates/money.js.git","svn_url":"https://github.com/openexchangerates/money.js","homepage":"http://openexchangerates.github.io/money.js","size":561,"stargazers_count":839,"watchers_count":839,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":57,"mirror_url":null,"open_issues_count":20,"forks":57,"open_issues":20,"watchers":839,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openexchangerates/money.js/pulls/24"},"html":{"href":"https://github.com/openexchangerates/money.js/pull/24"},"issue":{"href":"https://api.github.com/repos/openexchangerates/money.js/issues/24"},"comments":{"href":"https://api.github.com/repos/openexchangerates/money.js/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/openexchangerates/money.js/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/openexchangerates/money.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openexchangerates/money.js/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/openexchangerates/money.js/statuses/c76476456f1acef18c0b2441d36de3f55ae3650b"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":13,"deletions":1,"changed_files":1}}