Skip to content
Snippets Groups Projects
Commit a5575220 authored by Arthur Schiwon's avatar Arthur Schiwon
Browse files

LDAP: send back error message properly

parent 9f7d7802
No related branches found
No related tags found
No related merge requests found
......@@ -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'));
}
\ No newline at end of file
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