Skip to content

Commit 976a66d

Browse files
authored
Also print the error type in the log (#586)
1 parent 829142e commit 976a66d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/metatrain/utils/errors.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ class ArchitectureError(Exception):
1212

1313
def __init__(self, exception):
1414
super().__init__(
15-
f"{exception}\n\nThe error above most likely originates from an "
16-
"architecture.\n\nIf you think this is a bug, please contact its "
17-
"maintainer (see the architecture's documentation) and include the full "
18-
"traceback error.log."
15+
f"{exception.__class__.__name__}: {exception}\n\n"
16+
"The error above most likely originates from an architecture.\n\n"
17+
"If you think this is a bug, please contact its maintainer (see the "
18+
"architecture's documentation) and include the full traceback error.log."
1919
)

0 commit comments

Comments
 (0)