more granular response
@@ -154,9 +154,11 @@ def update_quota_usage(request, username):
except User.DoesNotExist:
return HttpResponseBadRequest('user to update quota for is not valid')
- update_quota_usage_utility(username)
-
+ ret_status = update_quota_usage_utility(username)
+ if ret_status:
return HttpResponse('quota for user ' + username + ' has been updated', status=200)
+ else:
+ return HttpResponse('quota for user ' + username + ' failed to update. Check logs for details.', status=500)
def extract_files_with_paths(request):
