Skip to content

Commit 388f2f5

Browse files
authored
Fix error.context message in ForPairs (#396) (#439)
1 parent 55c119c commit 388f2f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/State/ForPairs.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ local function SubObject<KI, KO, VI, VO, S>(
6464
return {key = outputKey, value = outputValue}
6565
else
6666
local error: Types.Error = outputKey :: any
67-
error.context = `while processing key {tostring(inputValue)} and value {tostring(inputValue)}`
67+
error.context = `while processing key {tostring(inputKey)} and value {tostring(inputValue)}`
6868
External.logErrorNonFatal("callbackError", error)
6969
doCleanup(scope)
7070
table.clear(scope)

0 commit comments

Comments
 (0)