{"action":"created","issue":{"url":"https://api.github.com/repos/dlmanning/gulp-sass/issues/203","labels_url":"https://api.github.com/repos/dlmanning/gulp-sass/issues/203/labels{/name}","comments_url":"https://api.github.com/repos/dlmanning/gulp-sass/issues/203/comments","events_url":"https://api.github.com/repos/dlmanning/gulp-sass/issues/203/events","html_url":"https://github.com/dlmanning/gulp-sass/issues/203","id":60758859,"number":203,"title":"Why does errLogToConsole suppress error?","user":{"login":"cappslock","id":2079125,"avatar_url":"https://avatars.githubusercontent.com/u/2079125?v=3","gravatar_id":"","url":"https://api.github.com/users/cappslock","html_url":"https://github.com/cappslock","followers_url":"https://api.github.com/users/cappslock/followers","following_url":"https://api.github.com/users/cappslock/following{/other_user}","gists_url":"https://api.github.com/users/cappslock/gists{/gist_id}","starred_url":"https://api.github.com/users/cappslock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cappslock/subscriptions","organizations_url":"https://api.github.com/users/cappslock/orgs","repos_url":"https://api.github.com/users/cappslock/repos","events_url":"https://api.github.com/users/cappslock/events{/privacy}","received_events_url":"https://api.github.com/users/cappslock/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-12T01:47:48Z","updated_at":"2015-03-25T14:04:22Z","closed_at":"2015-03-25T14:00:24Z","body":"I'm trying to understand why passing `errLogToConsole: true` suppresses the error event from being emitted on the stream. I think it's useful for the stream to emit an error still so that the gulp process will fail and the process will have a non-zero exit code. If I want this to happen as it's built currently I have to do something like this:\r\n\r\n```\r\n        .pipe(sass({\r\n            onError: function (error) {\r\n                console.error('[gulp-sass] ' + error.message + ' on line ' + error.line + ' in ' + error.file);\r\n                process.exit(1);\r\n            }\r\n        }))\r\n```\r\n\r\nAm I missing something?"},"comment":{"url":"https://api.github.com/repos/dlmanning/gulp-sass/issues/comments/86042723","html_url":"https://github.com/dlmanning/gulp-sass/issues/203#issuecomment-86042723","issue_url":"https://api.github.com/repos/dlmanning/gulp-sass/issues/203","id":86042723,"user":{"login":"cappslock","id":2079125,"avatar_url":"https://avatars.githubusercontent.com/u/2079125?v=3","gravatar_id":"","url":"https://api.github.com/users/cappslock","html_url":"https://github.com/cappslock","followers_url":"https://api.github.com/users/cappslock/followers","following_url":"https://api.github.com/users/cappslock/following{/other_user}","gists_url":"https://api.github.com/users/cappslock/gists{/gist_id}","starred_url":"https://api.github.com/users/cappslock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cappslock/subscriptions","organizations_url":"https://api.github.com/users/cappslock/orgs","repos_url":"https://api.github.com/users/cappslock/repos","events_url":"https://api.github.com/users/cappslock/events{/privacy}","received_events_url":"https://api.github.com/users/cappslock/received_events","type":"User","site_admin":false},"created_at":"2015-03-25T14:04:22Z","updated_at":"2015-03-25T14:04:22Z","body":"Why conflate useful error logging with useful process exit codes? They seem\nlike separate functions. Having to choose between them or write custom\nlogic to support both seems unnecessary. Is there a better way to achieve\nthat goal?\nOn Wed, Mar 25, 2015 at 9:00 AM Vincent Prouillet <notifications@github.com>\nwrote:\n\n> Closed #203 <https://github.com/dlmanning/gulp-sass/issues/203>.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/dlmanning/gulp-sass/issues/203#event-264738588>.\n>\n"}}