]> git.wh0rd.org - tt-rss.git/blobdiff - classes/pluginhandler.php
add a wrapper for standard error codes returned by backend, also add explanation...
[tt-rss.git] / classes / pluginhandler.php
index 69030516523a2a88914c64a2d74aa2b68b006524..5ca5c17d3d344b6bb5c6dc9a4d75c38b0261e4e9 100644 (file)
@@ -11,10 +11,10 @@ class PluginHandler extends Handler_Protected {
                        if (method_exists($plugin, $method)) {
                                $plugin->$method();
                        } else {
-                               print json_encode(array("error" => "METHOD_NOT_FOUND"));
+                               print error_json(13);
                        }
                } else {
-                       print json_encode(array("error" => "PLUGIN_NOT_FOUND"));
+                       print error_json(14);
                }
        }
 }