Skip to content

Commit

Permalink
fix(error): attach handler to the stream
Browse files Browse the repository at this point in the history
  • Loading branch information
stevemao committed Jan 28, 2016
1 parent 4da8a49 commit a54a194
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tasks/conventional-changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ module.exports = function(grunt) {

function generate(src, dest) {
return conventionalChangelog(changelogOpts, context, gitRawCommitsOpts, parserOpts, writerOpts)
.on('error', function(err) {
grunt.fail.fatal(err);
})
.pipe(concat(function(data) {
if (changelogOpts.releaseCount === 0) {
grunt.file.write(dest, data);
Expand Down

0 comments on commit a54a194

Please sign in to comment.