Mercurial > hg > fapweb
changeset 787:8f570449f9e7
Improve error handling.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 21 Nov 2014 07:18:59 +0200 |
parents | 85f5f569f6fc |
children | da0ddfe1b704 |
files | usrajax.php |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/usrajax.php Fri Nov 21 07:16:47 2014 +0200 +++ b/usrajax.php Fri Nov 21 07:18:59 2014 +0200 @@ -55,7 +55,9 @@ stSessionEnd(SESS_USER); - header("Location: ".stGetSetting("defaultPage")); + stError("You are not authenticated currently. Try to login again."); + stSetStatus(902, "Not authenticated."); + stDumpAJAXStatusErrors(); exit; } @@ -133,7 +135,7 @@ break; default: - stSetStatus(902, "Not Found"); + stSetStatus(902, "Operation not supported."); break; }