aboutsummaryrefslogtreecommitdiff
path: root/p/i/index.php
diff options
context:
space:
mode:
authorGravatar Martin <spleefer90@gmail.com> 2021-02-05 21:59:21 +0100
committerGravatar GitHub <noreply@github.com> 2021-02-05 21:59:21 +0100
commit934f032c19ba0ae16a4d19702c8e95c377f64c14 (patch)
treedb893d48f850e2a6e2dacfb9b57bbe1b9e4c8dbb /p/i/index.php
parent0577bc772bb28b3bda0f33b184c79aa226e606ca (diff)
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 <spleefer90@gmail.com> Co-authored-by: Martin Rys <martin@rys.pw> Co-authored-by: Frans de Jonge <fransdejonge@gmail.com> Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'p/i/index.php')
-rwxr-xr-xp/i/index.php5
1 files changed, 1 insertions, 4 deletions
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! ###<br />', "\n";
Minz_Log::error($error);
- echo 'See logs files.';
+ errorMessage('Fatal error');
syslog(LOG_INFO, 'FreshRSS Fatal error! ' . $error);
}
}