diff --git a/lib/compile-to-html.js b/lib/compile-to-html.js
index a8518c3..901a424 100644
--- a/lib/compile-to-html.js
+++ b/lib/compile-to-html.js
@@ -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
}
}