Skip to content

Commit b9cb8c2

Browse files
committed
use string interpolation in error to avoid invalidation from string *
1 parent d90ca22 commit b9cb8c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/basic_types.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ struct Mesh{
526526
try
527527
verify(fs, attrib)
528528
catch e
529-
rethrow(ErrorException("Failed to verify $name attribute:\n" * e.msg))
529+
rethrow(ErrorException("Failed to verify $name attribute:\n$(e.msg)"))
530530
end
531531
else
532532
length(attrib) < N && error("Failed to verify $name attribute:\nFaces address $N vertex attributes but only $(length(attrib)) are present.")

0 commit comments

Comments
 (0)