diff --git a/bin/check-example.js b/bin/check-example.js index 7995118519..ee7b8be5bf 100644 --- a/bin/check-example.js +++ b/bin/check-example.js @@ -28,3 +28,6 @@ page.open(examplePath, function(s) { } phantom.exit(exitCode); }); +page.onConsoleMessage = function(msg) { + console.log('console:', msg); +};