update error message

pull/4509/head
Tan Li Hau 6 years ago
parent 45632d0f7b
commit cea11935e8

@ -398,7 +398,7 @@ export default class Element extends Node {
if (!(parent.type === 'InlineComponent' || within_custom_element(parent))) {
component.error(attribute, {
code: `invalid-slotted-content`,
message: `Element with a slot='...' attribute must be a child of a component or custom element`,
message: `Element with a slot='...' attribute must be a child of a component or a descendant of a custom element`,
});
}
}

@ -1,3 +1,3 @@
export default {
error: [`Element with a slot='...' attribute must be a child of a component or custom element`]
error: [`Element with a slot='...' attribute must be a child of a component or a descendant of a custom element`]
};

@ -1,3 +1,3 @@
export default {
error: [`Element with a slot='...' attribute must be a child of a component or custom element`]
error: [`Element with a slot='...' attribute must be a child of a component or a descendant of a custom element`]
};

@ -1,3 +1,3 @@
export default {
error: [`Element with a slot='...' attribute must be a child of a component or custom element`]
error: [`Element with a slot='...' attribute must be a child of a component or a descendant of a custom element`]
};

@ -1,7 +1,7 @@
[
{
"code": "invalid-slotted-content",
"message": "Element with a slot='...' attribute must be a child of a component or custom element",
"message": "Element with a slot='...' attribute must be a child of a component or a descendant of a custom element",
"start": { "line": 10, "column": 9, "character": 138 },
"end": { "line": 10, "column": 19, "character": 148 },
"pos": 138

@ -1,6 +1,6 @@
[{
"code": "invalid-slotted-content",
"message": "Element with a slot='...' attribute must be a child of a component or custom element",
"message": "Element with a slot='...' attribute must be a child of a component or a descendant of a custom element",
"start": {
"line": 7,
"column": 7,

@ -1,6 +1,6 @@
[{
"code": "invalid-slotted-content",
"message": "Element with a slot='...' attribute must be a child of a component or custom element",
"message": "Element with a slot='...' attribute must be a child of a component or a descendant of a custom element",
"start": {
"line": 7,
"column": 7,

@ -1,6 +1,6 @@
[{
"code": "invalid-slotted-content",
"message": "Element with a slot='...' attribute must be a child of a component or custom element",
"message": "Element with a slot='...' attribute must be a child of a component or a descendant of a custom element",
"start": {
"line": 1,
"column": 5,

Loading…
Cancel
Save