]> git.wh0rd.org - tt-rss.git/blobdiff - plugins/instances/init.php
add a wrapper for standard error codes returned by backend, also add explanation...
[tt-rss.git] / plugins / instances / init.php
index 2de0e5fd2d8eb753bd0bd4f789488ade8ef4f76e..b23f45a0184331a15ee0637dedb8878eedfc2b65 100644 (file)
@@ -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);
                }
        }