summaryrefslogtreecommitdiff
path: root/classes/handler
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2015-03-30 13:02:24 +0300
committerAndrew Dolgov <[email protected]>2015-03-30 13:02:24 +0300
commit27f7b59353a076120407d8873ea86f5eea7d1dcf (patch)
tree0c9c3b0a7b705dc09855a6f308303427077590f9 /classes/handler
parentf75e7c64460b8337ecc769fb956cbe8a08b351e4 (diff)
add a wrapper for standard error codes returned by backend, also add explanation to the error object if possible
Diffstat (limited to 'classes/handler')
-rw-r--r--classes/handler/public.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/handler/public.php b/classes/handler/public.php
index e170a2631..46c74041c 100644
--- a/classes/handler/public.php
+++ b/classes/handler/public.php
@@ -706,7 +706,7 @@ class Handler_Public extends Handler {
function index() {
header("Content-Type: text/plain");
- print json_encode(array("error" => array("code" => 7)));
+ print error_json(13);
}
function forgotpass() {