Better error checking
This commit is contained in:
parent
da5ce2bae0
commit
2ce0a48f03
|
@ -282,6 +282,7 @@ function bhl_handle_error_result(array $ret_out, $err_file, $exit = true)
|
|||
$file = $jerr->file;
|
||||
|
||||
stderr("BHL ERROR: \n" . $jerr->error . " \nin '$file', line {$jerr->line}\n");
|
||||
if(file_exists($file))
|
||||
stderr(bhl_show_position($jerr->line, $jerr->column, file($file)) . "\n");
|
||||
if($exit)
|
||||
exit(1);
|
||||
|
|
Loading…
Reference in New Issue