From 934f032c19ba0ae16a4d19702c8e95c377f64c14 Mon Sep 17 00:00:00 2001 From: Martin Date: Fri, 5 Feb 2021 21:59:21 +0100 Subject: Better error message on failure (#3407) * bump default logout from 30 to 365 days * * Change cookie duration to constant * Change cookie duration to three months * use class * use 90 days (otherwise login form says 91.3 days) * change class * also this works now * Better error message * inconsistent dot with the other message * Better error message * add errorMessage() * fix style * html escape the error title * also html escape error message * remove spaces before parentheses * rework the error message * Minz-friendly * Update message Do not advise running this script as wrong user * Update lib/lib_rss.php Co-authored-by: Martin Co-authored-by: Martin Rys Co-authored-by: Frans de Jonge Co-authored-by: Alexandre Alapetite --- p/i/index.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'p/i') diff --git a/p/i/index.php b/p/i/index.php index 0d3f11900..cd82ae538 100755 --- a/p/i/index.php +++ b/p/i/index.php @@ -76,11 +76,8 @@ if (file_exists(DATA_PATH . '/do-install.txt')) { } if ($error) { - // TODO this should be definitely improved to display a nicer error - // page to the users (especially non administrators). - echo '### Fatal error! ###
', "\n"; Minz_Log::error($error); - echo 'See logs files.'; + errorMessage('Fatal error'); syslog(LOG_INFO, 'FreshRSS Fatal error! ' . $error); } } -- cgit v1.2.3