diff --git a/bhl.inc.php b/bhl.inc.php index e1d12dc..e38b322 100644 --- a/bhl.inc.php +++ b/bhl.inc.php @@ -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");