function FailOnError in geoPHP 7
File
- geoPHP/
tests/ test.php, line 254
Code
function FailOnError($error_level, $error_message, $error_file, $error_line, $error_context) {
echo "{$error_level}: {$error_message} in {$error_file} on line {$error_line}\n";
echo "\33[31m" . "FAIL" . "\33[39m\n";
exit(1);
}