diff --git a/tl.lua b/tl.lua index 97d7c75b..d9ad5d80 100644 --- a/tl.lua +++ b/tl.lua @@ -9371,7 +9371,7 @@ tl.type_check = function(ast, opts) end if #children[1] > nrets and (not lax) and not vatype then - node_error(node, "in " .. what .. ": excess return values, expected " .. #rets .. " %s, got " .. #children[1] .. " %s", rets, children[1]) + node_error(node, what .. ": excess return values, expected " .. #rets .. " %s, got " .. #children[1] .. " %s", rets, children[1]) end if nrets > 1 and diff --git a/tl.tl b/tl.tl index df814363..8b6b43a9 100644 --- a/tl.tl +++ b/tl.tl @@ -9371,7 +9371,7 @@ tl.type_check = function(ast: Node, opts: TypeCheckOptions): Result, string end if #children[1] > nrets and (not lax) and not vatype then - node_error(node, "in " .. what ..": excess return values, expected " .. #rets .. " %s, got " .. #children[1] .. " %s", rets, children[1]) + node_error(node, what ..": excess return values, expected " .. #rets .. " %s, got " .. #children[1] .. " %s", rets, children[1]) end if nrets > 1