From 42e673f2b19ed5b21add2a9efcd9a570c89cff37 Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Tue, 25 Feb 2025 20:04:47 +0300 Subject: [PATCH] A bit tweaking error reporting --- cache.inc.php | 1 - parse.inc.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/cache.inc.php b/cache.inc.php index e39daab..d2b3ad1 100644 --- a/cache.inc.php +++ b/cache.inc.php @@ -244,7 +244,6 @@ function config_cache_fetch(ConfigFetchParams $params) : ConfigFetchResult if(count($errors) > 15) break; } - var_dump(sizeof($errors)); throw new Exception(implode("\n", $errors)); } diff --git a/parse.inc.php b/parse.inc.php index e659452..5bb3f77 100644 --- a/parse.inc.php +++ b/parse.inc.php @@ -41,7 +41,7 @@ function config_parse(array $base_dirs, string $file) : ConfigParseResult else { $res->error = $decode_res[0]; - $res->error_descr = "File '$file':\n" . $decode_res[1]; + $res->error_descr = $decode_res[1]; } return $res;