Skip to content
This repository has been archived by the owner on Aug 13, 2018. It is now read-only.

Commit

Permalink
BUG do not throw Exception when JS errors caught
Browse files Browse the repository at this point in the history
  • Loading branch information
michalochman committed Aug 14, 2012
1 parent 3cdf11b commit 3f49085
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function readErrorHandlerAfterStep(StepEvent $event)
$jserrors = $page->find('xpath', '//body[@data-jserrors]');
if (null !== $jserrors) {
$this->takeScreenshot($event);
throw new \Exception($jserrors->getAttribute('data-jserrors'));
file_put_contents('php://stderr', $jserrors->getAttribute('data-jserrors') . PHP_EOL);
}
}

Expand Down

0 comments on commit 3f49085

Please sign in to comment.