Skip to content

Commit cac30d0

Browse files
authored
Merge pull request #51 from eltos/patch-1
Fix "Cannot add string and type"
2 parents 881b357 + 94499bc commit cac30d0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/assertions-util.typ

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@
3131
#let assert-types(var, types: (), default: none, name: "") = {
3232
assert(
3333
type(var) in (type(default), ..types),
34-
message: "" + name + " must be of type " + types.join(
34+
message: "" + name + " must be of type " + types.map(str).join(
3535
", ",
3636
last: " or ",
37-
) + ". Got " + type(var),
37+
) + ". Got " + str(type(var)),
3838
)
3939
}
4040

@@ -72,4 +72,4 @@
7272
if (post-transform != none) {
7373
assert-types(post-transform, types: (function,), name: "Post-transform")
7474
}
75-
}
75+
}

0 commit comments

Comments
 (0)