Skip to content
Snippets Groups Projects
Commit 62d8202d authored by Jörn Friedrich Dreyer's avatar Jörn Friedrich Dreyer
Browse files

return a message when app could not be enabled

parent c5f9b887
No related branches found
No related tags found
No related merge requests found
......@@ -10,5 +10,5 @@ $appid = OC_App::enable($_POST['appid']);
if($appid !== false) {
OC_JSON::success(array('data' => array('appid' => $appid)));
} else {
OC_JSON::error();
OC_JSON::error(array("data" => array( "message" => $l->t("Could not enable app. ") )));
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment