From 87fb959f013a60939663935bf6041530082f9d9e Mon Sep 17 00:00:00 2001 From: Christian Versloot Date: Mon, 15 Jan 2024 11:34:25 +0100 Subject: [PATCH] Improve error on AuthorizationException (#2264) --- src/zenml/zen_server/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zenml/zen_server/auth.py b/src/zenml/zen_server/auth.py index 5edad921028..2b0804b2877 100644 --- a/src/zenml/zen_server/auth.py +++ b/src/zenml/zen_server/auth.py @@ -239,7 +239,7 @@ def authenticate_credentials( token=access_token, ) except AuthorizationException: - error = "Authentication error: error decoding access token" + error = "Authentication error: error decoding access token. You may need to rerun zenml connect." logger.exception(error) raise AuthorizationException(error)