Unverified Commit 2700ba66 authored by Sylvain Gugger's avatar Sylvain Gugger Committed by GitHub
Browse files

Move cache: expand error message (#19051)

parent 2322eb8e
...@@ -1128,9 +1128,9 @@ if cache_version < 1: ...@@ -1128,9 +1128,9 @@ if cache_version < 1:
except Exception as e: except Exception as e:
trace = "\n".join(traceback.format_tb(e.__traceback__)) trace = "\n".join(traceback.format_tb(e.__traceback__))
logger.error( logger.error(
f"There was a problem when trying to move your cache:\n\n{trace}\n\nPlease file an issue at " f"There was a problem when trying to move your cache:\n\n{trace}\n{e.__class__.__name__}: {e}\n\nPlease "
"https://github.com/huggingface/transformers/issues/new/choose and copy paste this whole message and we " "file an issue at https://github.com/huggingface/transformers/issues/new/choose and copy paste this whole "
"will do our best to help." "message and we will do our best to help."
) )
try: try:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment