Skip to content

Commit 7206524

Browse files
author
Roman
committed
improve bittensor.utils.format_error_message
1 parent 59d52ff commit 7206524

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bittensor/utils/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ def format_error_message(error_message: Union[dict, Exception]) -> str:
248248
err_type = error_message.get("type", err_type)
249249
err_name = error_message.get("name", err_name)
250250
err_docs = error_message.get("docs", [err_description])
251-
err_description = err_docs[0] if err_docs else err_description
251+
err_description = " ".join(err_docs) if err_docs else err_description
252252

253253
elif error_message.get("code") and error_message.get("message"):
254254
err_type = error_message.get("code", err_name)

0 commit comments

Comments
 (0)