Now showing all errors for a compiled file, however showing the first error per line
This commit is contained in:
parent
91d9ad0946
commit
57df25454c
|
@ -283,10 +283,10 @@ function bhl_handle_error_result(array $ret_out, $err_file, $exit = true)
|
||||||
}
|
}
|
||||||
|
|
||||||
$file = $jerr->file;
|
$file = $jerr->file;
|
||||||
//let's show only one error per file
|
//let's show only one error per file's line
|
||||||
if(isset($history[$file]))
|
if(isset($history[$file.$jerr->line]))
|
||||||
continue;
|
continue;
|
||||||
$history[$file] = true;
|
$history[$file.$jerr->line] = true;
|
||||||
stderr("BHL ERROR: " . $jerr->error . " \nin '$file', line {$jerr->line}\n");
|
stderr("BHL ERROR: " . $jerr->error . " \nin '$file', line {$jerr->line}\n");
|
||||||
if(file_exists($file))
|
if(file_exists($file))
|
||||||
stderr(bhl_show_position($jerr->line, $jerr->column, file($file)) . "\n");
|
stderr(bhl_show_position($jerr->line, $jerr->column, file($file)) . "\n");
|
||||||
|
|
Loading…
Reference in New Issue