From 57df25454cad9277414a263a739be6dd00a52f11 Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Thu, 16 Mar 2023 17:29:38 +0300 Subject: [PATCH] Now showing all errors for a compiled file, however showing the first error per line --- bhl.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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");