Skip to content

Commit 5d57ab6

Browse files
committed
add helpful warning message for failed attempt to obtain wts token for drs
1 parent 4cf3f77 commit 5d57ab6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gen3/tools/download/drs_download.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,9 @@ def wts_get_token(hostname: str, idp: str, access_token: str):
350350
logger.critical(
351351
f"HTTP Error ({exc.response.status_code}): getting WTS token: {exc.response.text}"
352352
)
353+
logger.critical(
354+
"Please make sure the target commons is connected on your profile page and that connection has not expired."
355+
)
353356
return None
354357

355358
return _handle_access_token_response(response, "token")

0 commit comments

Comments
 (0)