Skip to content

Commit 28ae2ba

Browse files
committed
Fix error message
1 parent 39d4e49 commit 28ae2ba

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 it's LiveProp?`)
2525
}
2626

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

0 commit comments

Comments
 (0)