mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
LDAP: send back error message properly
This commit is contained in:
parent
9f7d780276
commit
a557522037
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue