# HG changeset patch # User Matti Hamalainen # Date 1416547139 -7200 # Node ID 8f570449f9e73c8ab859b7737e7f4b0c5cbfb583 # Parent 85f5f569f6fc546a86d9264408ec9995dcfb27f8 Improve error handling. diff -r 85f5f569f6fc -r 8f570449f9e7 usrajax.php --- 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; }