From 27f7b59353a076120407d8873ea86f5eea7d1dcf Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 30 Mar 2015 13:02:24 +0300 Subject: add a wrapper for standard error codes returned by backend, also add explanation to the error object if possible --- plugins/instances/init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/instances/init.php b/plugins/instances/init.php index 2de0e5fd2..b23f45a01 100644 --- a/plugins/instances/init.php +++ b/plugins/instances/init.php @@ -384,7 +384,7 @@ class Instances extends Plugin implements IHandler { print json_encode(array("feeds" => $feeds)); } else { - print json_encode(array("error" => array("code" => 6))); + print error_json(6); } } -- cgit v1.2.3-54-g00ecf