{"action":"created","issue":{"url":"https://api.github.com/repos/robertkrimen/otto/issues/189","repository_url":"https://api.github.com/repos/robertkrimen/otto","labels_url":"https://api.github.com/repos/robertkrimen/otto/issues/189/labels{/name}","comments_url":"https://api.github.com/repos/robertkrimen/otto/issues/189/comments","events_url":"https://api.github.com/repos/robertkrimen/otto/issues/189/events","html_url":"https://github.com/robertkrimen/otto/issues/189","id":153444986,"number":189,"title":"Best way to throw an exception from Go-land?","user":{"login":"cvillecsteele","id":14191,"avatar_url":"https://avatars.githubusercontent.com/u/14191?v=3","gravatar_id":"","url":"https://api.github.com/users/cvillecsteele","html_url":"https://github.com/cvillecsteele","followers_url":"https://api.github.com/users/cvillecsteele/followers","following_url":"https://api.github.com/users/cvillecsteele/following{/other_user}","gists_url":"https://api.github.com/users/cvillecsteele/gists{/gist_id}","starred_url":"https://api.github.com/users/cvillecsteele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cvillecsteele/subscriptions","organizations_url":"https://api.github.com/users/cvillecsteele/orgs","repos_url":"https://api.github.com/users/cvillecsteele/repos","events_url":"https://api.github.com/users/cvillecsteele/events{/privacy}","received_events_url":"https://api.github.com/users/cvillecsteele/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-05-06T12:57:14Z","updated_at":"2016-10-07T02:15:29Z","closed_at":null,"body":"Title says it all.  Just wondering how folks are doing that?  Like so?  Or got a better way?\r\n\r\n    value, _ := vm.Call(`throw \"Oh noes!\"`, nil);\r\n\r\nBeuler?"},"comment":{"url":"https://api.github.com/repos/robertkrimen/otto/issues/comments/252137595","html_url":"https://github.com/robertkrimen/otto/issues/189#issuecomment-252137595","issue_url":"https://api.github.com/repos/robertkrimen/otto/issues/189","id":252137595,"user":{"login":"deoxxa","id":479055,"avatar_url":"https://avatars.githubusercontent.com/u/479055?v=3","gravatar_id":"","url":"https://api.github.com/users/deoxxa","html_url":"https://github.com/deoxxa","followers_url":"https://api.github.com/users/deoxxa/followers","following_url":"https://api.github.com/users/deoxxa/following{/other_user}","gists_url":"https://api.github.com/users/deoxxa/gists{/gist_id}","starred_url":"https://api.github.com/users/deoxxa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deoxxa/subscriptions","organizations_url":"https://api.github.com/users/deoxxa/orgs","repos_url":"https://api.github.com/users/deoxxa/repos","events_url":"https://api.github.com/users/deoxxa/events{/privacy}","received_events_url":"https://api.github.com/users/deoxxa/received_events","type":"User","site_admin":false},"created_at":"2016-10-07T02:15:29Z","updated_at":"2016-10-07T02:15:29Z","body":"That's totally an option. The reason they're not like that by default is that throwing an error isn't the only thing you can do with it. You can also pass it around like a value (e.g. in asynchronous contexts), and indeed that's more appropriate in some cases.\r\n\r\nI'd happily merge a patch implementing those exact functions if you'd like to put that together :)"}}
{"actor":{"display_login":"deoxxa"}}