return a message when app could not be enabled
This commit is contained in:
parent
c5f9b887ff
commit
62d8202d59
|
@ -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. ") )));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue