Skip to content

Commit a95cbfe

Browse files
committed
also use wrapper in errorhint
1 parent 456f4da commit a95cbfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/errorshow.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1127,7 +1127,7 @@ Experimental.register_error_hint(fielderror_dict_hint_handler, FieldError)
11271127
function fielderror_listfields_hint_handler(io, exc)
11281128
fields = fieldnames(exc.type)
11291129
if isempty(fields)
1130-
print(io, "; $(nameof(exc.type)) has no fields at all.")
1130+
print(io, "; $(exc.type.name.wrapper) has no fields at all.")
11311131
else
11321132
print(io, ", available fields: $(join(map(k -> "`$k`", fields), ", "))")
11331133
end

0 commit comments

Comments
 (0)