From e27cfd4dda0ef66f99e6748c68208eb44cb30824 Mon Sep 17 00:00:00 2001 From: Jesse Haber-Kucharsky Date: Wed, 24 Jan 2018 17:53:06 -0500 Subject: [PATCH] client_state: Fix error message Now that resources are not just keyspaces and tables, the word "schema" doesn't make sense. --- service/client_state.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/service/client_state.cc b/service/client_state.cc index 20e3593fc3..7c7e893177 100644 --- a/service/client_state.cc +++ b/service/client_state.cc @@ -186,9 +186,7 @@ future<> service::client_state::has_access(const sstring& ks, auth::permission p for (auto& s : { _auth_service->underlying_authorizer().protected_resources(), _auth_service->underlying_authorizer().protected_resources() }) { if (s.count(resource)) { - throw exceptions::unauthorized_exception( - sprint("%s schema is protected", - resource)); + throw exceptions::unauthorized_exception(sprint("%s is protected", resource)); } } }