Commit 708726c4 authored by Akhil's avatar Akhil 😶
Browse files

Add error string instead of errors

parent 829f6b79
......@@ -41,17 +41,16 @@ class UserController extends ApiController
return $response;
}
$errors = [];
$this->userService->setEmail($uid, $email);
$this->userService->setQuota($uid, $quota);
$createdFolder = $this->userService->createUserFolder($uid);
if(!$createdFolder){
$errors[] = 'error_creating_user_folder';
$response->setStatus(500);
$error = 'error_creating_user_folder';
$response->setData(['error' => $error]);
}
$response->setData(['errors' => $errors]);
return $response;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment