{"action":"created","issue":{"url":"https://api.github.com/repos/sindresorhus/gulp-ruby-sass/issues/164","labels_url":"https://api.github.com/repos/sindresorhus/gulp-ruby-sass/issues/164/labels{/name}","comments_url":"https://api.github.com/repos/sindresorhus/gulp-ruby-sass/issues/164/comments","events_url":"https://api.github.com/repos/sindresorhus/gulp-ruby-sass/issues/164/events","html_url":"https://github.com/sindresorhus/gulp-ruby-sass/issues/164","id":50818705,"number":164,"title":"Issues with error handling and events","user":{"login":"alexmccabe","id":2529110,"avatar_url":"https://avatars.githubusercontent.com/u/2529110?v=3","gravatar_id":"","url":"https://api.github.com/users/alexmccabe","html_url":"https://github.com/alexmccabe","followers_url":"https://api.github.com/users/alexmccabe/followers","following_url":"https://api.github.com/users/alexmccabe/following{/other_user}","gists_url":"https://api.github.com/users/alexmccabe/gists{/gist_id}","starred_url":"https://api.github.com/users/alexmccabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexmccabe/subscriptions","organizations_url":"https://api.github.com/users/alexmccabe/orgs","repos_url":"https://api.github.com/users/alexmccabe/repos","events_url":"https://api.github.com/users/alexmccabe/events{/privacy}","received_events_url":"https://api.github.com/users/alexmccabe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2014-12-03T10:39:54Z","updated_at":"2015-03-21T09:19:23Z","closed_at":null,"body":"I am having trouble understanding how this new version can be used with gulp-plumber. \r\n\r\nGulp task:\r\n\r\n    return plugins.rubySass(paths.sass.input, {\r\n        sourcemap: sourceMap\r\n    })\r\n    .pipe(plugins.plumber({\r\n        errorHandler: notify.onError(\"Error: <%= error.message %>\")\r\n    }));\r\n\r\n\r\nI get an error in the console when I force a SCSS error.\r\n\r\n    gulp-ruby-sass stdout: directory\r\n\r\n    events.js:72\r\n        throw er; // Unhandled 'error' event\r\n              ^\r\n     Error: error public/installations/src/sass/components/_buttons.scss (Line 47: Invalid CSS after \"...g: .68em 1.5em}\": expected \"}\", was \"\")\r\n\r\nSo the error isn't being picked up by plumber. "},"comment":{"url":"https://api.github.com/repos/sindresorhus/gulp-ruby-sass/issues/comments/84286136","html_url":"https://github.com/sindresorhus/gulp-ruby-sass/issues/164#issuecomment-84286136","issue_url":"https://api.github.com/repos/sindresorhus/gulp-ruby-sass/issues/164","id":84286136,"user":{"login":"adammockor","id":1824790,"avatar_url":"https://avatars.githubusercontent.com/u/1824790?v=3","gravatar_id":"","url":"https://api.github.com/users/adammockor","html_url":"https://github.com/adammockor","followers_url":"https://api.github.com/users/adammockor/followers","following_url":"https://api.github.com/users/adammockor/following{/other_user}","gists_url":"https://api.github.com/users/adammockor/gists{/gist_id}","starred_url":"https://api.github.com/users/adammockor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adammockor/subscriptions","organizations_url":"https://api.github.com/users/adammockor/orgs","repos_url":"https://api.github.com/users/adammockor/repos","events_url":"https://api.github.com/users/adammockor/events{/privacy}","received_events_url":"https://api.github.com/users/adammockor/received_events","type":"User","site_admin":false},"created_at":"2015-03-21T09:19:23Z","updated_at":"2015-03-21T09:19:23Z","body":"This is still super weird to me, version 1.0.1.\r\n\r\nWhen I run tests and `gulp sass-inline` inside this repository, I got output as expected with custom error message from .on('error').\r\n\r\nBut this still do not work: (I got error in browser and console, but not customized from .on('error'))\r\n\r\n```\r\ngulp.task('styles', function () {\r\n  return rubySass(config.styles.src, {\r\n      sourcemap: true,\r\n      style: 'expanded',\r\n      lineNumbers: true\r\n    })\r\n    .on('error', function (err) {\r\n      console.error('Hey! Error!', err.message);\r\n    })\r\n    .pipe(postcss([\r\n      autoprefixer(config.styles.autoprefixerCfg)\r\n    ]))\r\n    .pipe(sourcemaps.write())\r\n    .pipe(gulp.dest(config.styles.dest))\r\n    .pipe(reload({stream:true}));\r\n});\r\n```"}}