Skip to content

Commit f5a5b5f

Browse files
committed
fix
1 parent f33c128 commit f5a5b5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/StructHelpers.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,15 @@ macro batteries(T, kw...)
113113
elseif pname == :typesalt
114114
if !(val isa Union{Nothing,Integer})
115115
error("""`typesalt` must be literally `nothing` or an unsigned integer. Got:
116-
typesalt = $(typesalt)::$(typeof(typesalt))
116+
typesalt = $(repr(typesalt))::$(typeof(typesalt))
117117
""")
118118
end
119119
else
120120
error("""
121121
Bad keyword argument value:
122122
Got: $nt
123123
Offending Keyword: $pname
124-
Offending value : $val
124+
Offending value : $(repr(val))
125125
""")
126126
end
127127
end

0 commit comments

Comments
 (0)