Now showing all errors for a compiled file, however showing the first error per line

This commit is contained in:
Pavel Shevaev 2023-03-16 17:29:38 +03:00
parent 91d9ad0946
commit 57df25454c
1 changed files with 3 additions and 3 deletions

View File

@ -283,10 +283,10 @@ function bhl_handle_error_result(array $ret_out, $err_file, $exit = true)
}
$file = $jerr->file;
//let's show only one error per file
if(isset($history[$file]))
//let's show only one error per file's line
if(isset($history[$file.$jerr->line]))
continue;
$history[$file] = true;
$history[$file.$jerr->line] = true;
stderr("BHL ERROR: " . $jerr->error . " \nin '$file', line {$jerr->line}\n");
if(file_exists($file))
stderr(bhl_show_position($jerr->line, $jerr->column, file($file)) . "\n");