Skip to content

Commit

Permalink
Merge pull request chrisvfritz#113 from dsanders11/patch-1
Browse files Browse the repository at this point in the history
Correctly throw error if PhantomJS fails
  • Loading branch information
drewlustro authored Oct 11, 2017
2 parents dbbf3b5 + de0edbf commit 2a69fde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/compile-to-html.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ module.exports = function (staticDir, route, options, callback) {
if (attemptsSoFar <= maxAttempts) {
return capturePage()
} else {
if (error) throw stdout
if (error) throw error
if (stderr) throw stderr
}
}
Expand Down

0 comments on commit 2a69fde

Please sign in to comment.