Skip to content

Commit 9d0b1f5

Browse files
committed
fix to error message
fixed to add clarity for user
1 parent 6e9ed91 commit 9d0b1f5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

user_sync/connector/umapi_util.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
def make_auth_dict(name, config, org_id, tech_acct, logger):
66
api_field = 'client_id' if 'client_id' in config or 'secure_client_id_key' in config else "api_key"
77
if "api_key" in config and "client_id" in config:
8-
raise AssertionException('Please use client_id. Cannot contain setting for both "api_key" and "client_id".')
8+
#word to be the same thing--take out api key--
9+
raise AssertionException('Cannot contain setting for both "api_key" and "client_id"(both fields set the same value). Please use "client_id."')
910
if "api_key" in config and "secure_client_id" in config:
10-
raise AssertionException('Please use "secure_client_id_key". Cannot contain setting for both "api_key" and "secure_client_id_key".')
11+
raise AssertionException('Cannot contain setting for both "api_key" and "secure_client_id_key"(both fields set the same value). Please use "secure_client_id_key"')
1112
auth_dict = {
1213
'org_id': org_id,
1314
'tech_acct_id': tech_acct,

0 commit comments

Comments
 (0)