diff --git a/index.php b/index.php index 19df270..5e1236b 100644 --- a/index.php +++ b/index.php @@ -39,7 +39,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && (string)($_POST['action'] ?? '') == $commentSaved = true; } catch (Throwable $e) { error_log('Comment add failed: ' . $e->getMessage()); - $errorMessage = 'Ошибка отправки комментария: ' . $e->getMessage(); + $errorMessage = 'Не удалось отправить комментарий.'; $errorCode = 500; } } else { @@ -691,7 +691,7 @@ function outputWatermarked(string $path, string $mime): never