public function JavascriptError::message in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/jcalderonzumba/gastonjs/src/Exception/JavascriptError.php \Zumba\GastonJS\Exception\JavascriptError::message()
Returns the javascript errors found
Return value
string
1 call to JavascriptError::message()
- JavascriptError::__construct in vendor/
jcalderonzumba/ gastonjs/ src/ Exception/ JavascriptError.php
File
- vendor/
jcalderonzumba/ gastonjs/ src/ Exception/ JavascriptError.php, line 37
Class
- JavascriptError
- Class JavascriptError @package Zumba\GastonJS\Exception
Namespace
Zumba\GastonJS\ExceptionCode
public function message() {
$error = "One or more errors were raised in the Javascript code on the page.\n If you don't care about these errors, you can ignore them by\n setting js_errors: false in your Poltergeist configuration (see documentation for details).";
//TODO: add javascript errors
$jsErrors = $this
->javascriptErrors();
foreach ($jsErrors as $jsError) {
$error = "{$error}\n{$jsError}";
}
return $error;
}