Skip to content

Commit

Permalink
Merge pull request #1 from tcar/bugfix-error-event-listener
Browse files Browse the repository at this point in the history
Add error listener
  • Loading branch information
z-ZYS-s authored Jun 16, 2019
2 parents 2a55cd9 + 8199767 commit a96a852
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/generateFonts.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ var generators = {
.on('data', function(data) {
font = Buffer.concat([font, data])
})
.on('error', done)
.on('end', function() {
done(null, font.toString())
})
Expand Down

0 comments on commit a96a852

Please sign in to comment.