clean up error message

This commit is contained in:
Ishaan Jaff 2025-04-16 17:39:46 -07:00
parent f75aaaba49
commit 38de64e1cf

View file

@ -39,7 +39,9 @@ class RouteChecks:
):
return True
raise Exception("Virtual key is not allowed to call this route.")
raise Exception(
f"Virtual key is not allowed to call this route. Only allowed to call routes: {valid_token.allowed_routes}. Tried to call route: {route}"
)
@staticmethod
def non_proxy_admin_allowed_routes_check(