mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 02:34:29 +00:00
clean up error message
This commit is contained in:
parent
f75aaaba49
commit
38de64e1cf
1 changed files with 3 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue