{"action":"created","issue":{"url":"https://api.github.com/repos/rails/ruby-coffee-script/issues/4","repository_url":"https://api.github.com/repos/rails/ruby-coffee-script","labels_url":"https://api.github.com/repos/rails/ruby-coffee-script/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/rails/ruby-coffee-script/issues/4/comments","events_url":"https://api.github.com/repos/rails/ruby-coffee-script/issues/4/events","html_url":"https://github.com/rails/ruby-coffee-script/issues/4","id":108193722,"number":4,"title":"Missing context in SyntaxError exceptions","user":{"login":"diclophis","id":10122,"avatar_url":"https://avatars.githubusercontent.com/u/10122?v=3","gravatar_id":"","url":"https://api.github.com/users/diclophis","html_url":"https://github.com/diclophis","followers_url":"https://api.github.com/users/diclophis/followers","following_url":"https://api.github.com/users/diclophis/following{/other_user}","gists_url":"https://api.github.com/users/diclophis/gists{/gist_id}","starred_url":"https://api.github.com/users/diclophis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diclophis/subscriptions","organizations_url":"https://api.github.com/users/diclophis/orgs","repos_url":"https://api.github.com/users/diclophis/repos","events_url":"https://api.github.com/users/diclophis/events{/privacy}","received_events_url":"https://api.github.com/users/diclophis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2015-09-24T19:05:31Z","updated_at":"2016-08-07T13:19:01Z","closed_at":null,"body":"Due to the wrapping and mutating of `SyntaxErrors` here: https://github.com/rails/ruby-coffee-script/blob/master/lib/coffee_script.rb#L29\r\n\r\nThe full context/message of the coffeescript syntax error is missing.\r\n\r\nNote the first screenshot shows the current error message when we have a coffeescript error\r\n![missing-context](https://cloud.githubusercontent.com/assets/10122/10083658/4dc4a9be-62b4-11e5-82a0-0d5bf3e4b9ea.png)\r\n\r\n\r\n\r\nThis second screenshot is the same error, except with the \"wrapper\" code on line #29 of `coffee_script.rb` removed...\r\n![with-context](https://cloud.githubusercontent.com/assets/10122/10083659/4dc53b04-62b4-11e5-992a-85d7a45c2549.png)\r\n\r\nCan the wrapper code be updated to better capture more context of coffeescript errors, and or is the wrapping and special handling of SyntaxErrors necessary at all?"},"comment":{"url":"https://api.github.com/repos/rails/ruby-coffee-script/issues/comments/238081961","html_url":"https://github.com/rails/ruby-coffee-script/issues/4#issuecomment-238081961","issue_url":"https://api.github.com/repos/rails/ruby-coffee-script/issues/4","id":238081961,"user":{"login":"Schwad","id":7865030,"avatar_url":"https://avatars.githubusercontent.com/u/7865030?v=3","gravatar_id":"","url":"https://api.github.com/users/Schwad","html_url":"https://github.com/Schwad","followers_url":"https://api.github.com/users/Schwad/followers","following_url":"https://api.github.com/users/Schwad/following{/other_user}","gists_url":"https://api.github.com/users/Schwad/gists{/gist_id}","starred_url":"https://api.github.com/users/Schwad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Schwad/subscriptions","organizations_url":"https://api.github.com/users/Schwad/orgs","repos_url":"https://api.github.com/users/Schwad/repos","events_url":"https://api.github.com/users/Schwad/events{/privacy}","received_events_url":"https://api.github.com/users/Schwad/received_events","type":"User","site_admin":false},"created_at":"2016-08-07T13:19:01Z","updated_at":"2016-08-07T13:19:01Z","body":"THIS"}}
{"actor":{"display_login":"Schwad"}}