Move cache: expand error message (#19051)

This commit is contained in:
Sylvain Gugger 2022-09-15 09:39:59 -04:00 committed by GitHub
parent 2322eb8e2f
commit 2700ba66d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -1128,9 +1128,9 @@ if cache_version < 1:
except Exception as e:
trace = "\n".join(traceback.format_tb(e.__traceback__))
logger.error(
f"There was a problem when trying to move your cache:\n\n{trace}\n\nPlease file an issue at "
"https://github.com/huggingface/transformers/issues/new/choose and copy paste this whole message and we "
"will do our best to help."
f"There was a problem when trying to move your cache:\n\n{trace}\n{e.__class__.__name__}: {e}\n\nPlease "
"file an issue at https://github.com/huggingface/transformers/issues/new/choose and copy paste this whole "
"message and we will do our best to help."
)
try: