LDAP: send back error message properly
This commit is contained in:
parent
9f7d780276
commit
a557522037
|
@ -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'));
|
||||
}
|
Loading…
Reference in New Issue