From d3fd53dbeaeba5ca7f36bda813f95fe45d75c085 Mon Sep 17 00:00:00 2001 From: Alexander Prinzhorn Date: Fri, 13 Dec 2024 12:11:57 +0100 Subject: [PATCH] Improve each_item_invalid_assignment error message --- .../samples/runes-invalid-each-binding/_config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/svelte/tests/compiler-errors/samples/runes-invalid-each-binding/_config.js b/packages/svelte/tests/compiler-errors/samples/runes-invalid-each-binding/_config.js index 524c2f161c27..b23c841f4511 100644 --- a/packages/svelte/tests/compiler-errors/samples/runes-invalid-each-binding/_config.js +++ b/packages/svelte/tests/compiler-errors/samples/runes-invalid-each-binding/_config.js @@ -4,6 +4,6 @@ export default test({ error: { code: 'each_item_invalid_assignment', message: - 'Cannot reassign or bind to each block argument in runes mode. Use the array and index variables instead (e.g. `array[i] = value` instead of `entry = value`)' + 'Cannot reassign or bind to each block argument in runes mode. Use the array and index variables instead (e.g. `bind:value={array[i]}` instead of `bind:value={entry}`)' } });