Skip to content

Commit

Permalink
Merge pull request #22 from typst-community/tingerrr/zyspzuszlxkr
Browse files Browse the repository at this point in the history
Fix type mismatch error message
  • Loading branch information
jamesrswift authored Jun 2, 2024
2 parents 0613e6a + cd951ca commit 1bc0aa7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/base-type.typ
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
it,
scope: scope,
ctx: ctx,
message: "Expected " + types.join(
message: "Expected " + self.types.map(repr).join(
", ",
last: " or ",
) + ". Got " + type(it),
Expand Down Expand Up @@ -113,4 +113,4 @@
assert(ctx.soft-error, message: display)
},
)
}
}

0 comments on commit 1bc0aa7

Please sign in to comment.