LDAP: send back error message properly

This commit is contained in:
Arthur Schiwon 2013-01-30 02:39:11 +01:00
parent 9f7d780276
commit a557522037
1 changed files with 1 additions and 1 deletions

View File

@ -30,5 +30,5 @@ $prefix = $_POST['ldap_serverconfig_chooser'];
if(\OCA\user_ldap\lib\Helper::deleteServerConfiguration($prefix)){
OCP\JSON::success();
} else {
OCP\JSON::error('Failed to delete the server configuration');
OCP\JSON::error(array('message' => 'Failed to delete the server configuration'));
}