Skip to content

Commit 9549bb2

Browse files
committed
bug #226 Fix error message (norkunas)
This PR was merged into the 2.x branch. Discussion ---------- Fix error message | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Tickets | N/A | License | MIT Commits ------- 4b20ce2 Fix error message
2 parents 8953ff2 + 4b20ce2 commit 9549bb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LiveComponent/assets/src/set_deep_data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export function setDeepData(data, propertyPath, value) {
2121
// an integer (2).
2222
if (typeof currentLevelData !== 'object') {
2323
const lastPart = parts.pop();
24-
throw new Error(`Cannot set data-model="${propertyPath}". They parent "${parts.join(',')}" data does not appear to be an object (it's "${currentLevelData}"). Did you forget to add exposed={"${lastPart}"} to its LiveProp?`)
24+
throw new Error(`Cannot set data-model="${propertyPath}". The parent "${parts.join('.')}" data does not appear to be an object (it's "${currentLevelData}"). Did you forget to add exposed={"${lastPart}"} to its LiveProp?`)
2525
}
2626

2727
// represents a situation where the key you're setting *is* an object,

0 commit comments

Comments
 (0)