{"action":"created","issue":{"url":"https://api.github.com/repos/sass/dart-sass/issues/109","repository_url":"https://api.github.com/repos/sass/dart-sass","labels_url":"https://api.github.com/repos/sass/dart-sass/issues/109/labels{/name}","comments_url":"https://api.github.com/repos/sass/dart-sass/issues/109/comments","events_url":"https://api.github.com/repos/sass/dart-sass/issues/109/events","html_url":"https://github.com/sass/dart-sass/issues/109","id":205024491,"number":109,"title":"dart-sass error contains `message` but no file/line info","user":{"login":"tony19","id":26580,"avatar_url":"https://avatars.githubusercontent.com/u/26580?v=3","gravatar_id":"","url":"https://api.github.com/users/tony19","html_url":"https://github.com/tony19","followers_url":"https://api.github.com/users/tony19/followers","following_url":"https://api.github.com/users/tony19/following{/other_user}","gists_url":"https://api.github.com/users/tony19/gists{/gist_id}","starred_url":"https://api.github.com/users/tony19/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tony19/subscriptions","organizations_url":"https://api.github.com/users/tony19/orgs","repos_url":"https://api.github.com/users/tony19/repos","events_url":"https://api.github.com/users/tony19/events{/privacy}","received_events_url":"https://api.github.com/users/tony19/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-02T23:07:12Z","updated_at":"2017-02-03T00:02:09Z","closed_at":null,"body":"When `dart-sass` detects an error in a `.scss` file, it invokes the callback with an `err` object that contains `message`, but there's no file/line info for correlation.\r\n\r\n### Steps to reproduce\r\n\r\n 1. Install `dart-sass` 1.0.0-alpha.8 with: `npm install dart-sass`\r\n 2. Create a Gulp task that calls `dart-sass` like this:\r\n\r\n```javascript\r\ndartSass.render({file: file.path}, (err, result) => {\r\n    if (err) {\r\n      console.error('sass error', err);\r\n    } else {\r\n      file.contents = result.buffer;\r\n    }\r\n    cb(err, file);\r\n});\r\n```\r\n\r\n 3. Pipe the following file to `dart-sass`:\r\n\r\n*foo.scss:*\r\n```scss\r\n:host {\r\n  display: block;\r\n  padding: 10px;\r\n\r\n  --view1-card: {\r\n    'foo   /* intentionally unterminated string */\r\n  }\r\n}\r\n```\r\n\r\n### Expected result\r\nThe callback's `err` object included file and line info.\r\n\r\n### Actual result\r\nOnly `message` (without file/line info) is provided in `err`. The `message` contains:\r\n\r\n    Expected '.\r\n\r\n### Environment\r\n * dart-sass 1.0.0-alpha.8\r\n * node 7.5.0\r\n * gulp 3.9.1\r\n * macOS Sierra 10.12\r\n"},"comment":{"url":"https://api.github.com/repos/sass/dart-sass/issues/comments/277124672","html_url":"https://github.com/sass/dart-sass/issues/109#issuecomment-277124672","issue_url":"https://api.github.com/repos/sass/dart-sass/issues/109","id":277124672,"user":{"login":"nex3","id":188,"avatar_url":"https://avatars.githubusercontent.com/u/188?v=3","gravatar_id":"","url":"https://api.github.com/users/nex3","html_url":"https://github.com/nex3","followers_url":"https://api.github.com/users/nex3/followers","following_url":"https://api.github.com/users/nex3/following{/other_user}","gists_url":"https://api.github.com/users/nex3/gists{/gist_id}","starred_url":"https://api.github.com/users/nex3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nex3/subscriptions","organizations_url":"https://api.github.com/users/nex3/orgs","repos_url":"https://api.github.com/users/nex3/repos","events_url":"https://api.github.com/users/nex3/events{/privacy}","received_events_url":"https://api.github.com/users/nex3/received_events","type":"User","site_admin":false},"created_at":"2017-02-03T00:02:09Z","updated_at":"2017-02-03T00:02:09Z","body":"What does the Node Sass error look like here?"}}
{"actor":{"display_login":"nex3"}}