mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-14 01:05:56 +00:00
print additional info on fatalError(3)
This commit is contained in:
@@ -62,7 +62,12 @@
|
|||||||
|
|
||||||
<h1>Fatal Error</h1>
|
<h1>Fatal Error</h1>
|
||||||
|
|
||||||
<div class="bigErrorMsg"><?= $ERRORS[$_GET["c"]] ?></div>
|
<div class="bigErrorMsg"><?= $ERRORS[$_GET["c"]] ?>
|
||||||
|
|
||||||
|
<? if ($_GET["p"]) { ?>
|
||||||
|
<p><?= htmlspecialchars($_GET["p"]) ?></p>
|
||||||
|
<? } ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@@ -524,8 +524,13 @@ function hideOrShowFeeds(doc, hide) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function fatalError(code) {
|
function fatalError(code, params) {
|
||||||
window.location = "error.php?c=" + param_escape(code);
|
if (!params) {
|
||||||
|
window.location = "error.php?c=" + param_escape(code);
|
||||||
|
} else {
|
||||||
|
window.location = "error.php?c=" + param_escape(code) +
|
||||||
|
"&p=" + param_escape(params);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function selectTableRow(r, do_select) {
|
function selectTableRow(r, do_select) {
|
||||||
|
|||||||
@@ -143,14 +143,14 @@ function backend_sanity_check_callback() {
|
|||||||
try {
|
try {
|
||||||
|
|
||||||
if (!xmlhttp.responseXML) {
|
if (!xmlhttp.responseXML) {
|
||||||
fatalError(3);
|
fatalError(3, "D001;" + xmlhttp.responseText);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var reply = xmlhttp.responseXML.firstChild;
|
var reply = xmlhttp.responseXML.firstChild;
|
||||||
|
|
||||||
if (!reply) {
|
if (!reply) {
|
||||||
fatalError(3);
|
fatalError(3, "D002;" + xmlhttp.responseText);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user