Skip to content

Commit 3f32cd8

Browse files
authored
Merge branch 'no-exit' into add-test-to-644
2 parents d35c703 + c9f6a0f commit 3f32cd8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/pdf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ PDF.prototype.exec = function PdfExec (callback) {
130130
// Rudimentary checking if err is an instance of the Error class
131131
error = err instanceof Error ? err : new Error(err)
132132
} else if (code === 0 && !data) {
133-
// This is to catch the edge case of having an exit code value of 0 but not having data (exit can be called before io pipes are closed)
133+
// This is to catch the edge case of having a exit code value of 0 but having no data (exit can be called before io pipes are closed)
134134
error = new Error('html-pdf: Process exited successfully, but no data received')
135135
} else {
136136
// This is to catch the edge case of having an exit code value of 1 but having no error

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "html-pdf",
3-
"version": "3.0.1",
3+
"version": "3.0.2-kv",
44
"description": "HTML to PDF converter that uses phantomjs",
55
"engines": {
66
"node": ">=4.0.0"

0 commit comments

Comments
 (0)