From e463ddc9be1a20a119d003ac69644015d8c1d500 Mon Sep 17 00:00:00 2001 From: Meir Wahnon Date: Mon, 4 Jul 2022 10:10:46 +0300 Subject: [PATCH 1/2] elaborate error msg elaborate on missing DESCOPE_PROJECT_ID env var --- descope/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/descope/auth.py b/descope/auth.py index d56dd2ae8..c405482fc 100644 --- a/descope/auth.py +++ b/descope/auth.py @@ -39,7 +39,7 @@ def __init__(self, project_id: str, public_key: str = None): raise AuthException( 500, "Init failure", - "Failed to init AuthClient object, project should not be empty", + "Failed to init AuthClient object, project should not be empty, remember to set env variable DESCOPE_PROJECT_ID", ) self.project_id = project_id From 96943911c55249476d5a041e917be469f65be0a9 Mon Sep 17 00:00:00 2001 From: Meir Wahnon Date: Mon, 4 Jul 2022 10:55:52 +0300 Subject: [PATCH 2/2] change wording change wording --- descope/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/descope/auth.py b/descope/auth.py index c405482fc..152a77db2 100644 --- a/descope/auth.py +++ b/descope/auth.py @@ -39,7 +39,7 @@ def __init__(self, project_id: str, public_key: str = None): raise AuthException( 500, "Init failure", - "Failed to init AuthClient object, project should not be empty, remember to set env variable DESCOPE_PROJECT_ID", + "Failed to init AuthClient object, project should not be empty, remember to set env variable DESCOPE_PROJECT_ID or pass along it to init funcation", ) self.project_id = project_id