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))) { if (!(parent.type === 'InlineComponent' || within_custom_element(parent))) {
component.error(attribute, { component.error(attribute, {
code: `invalid-slotted-content`, 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 { 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 { 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 { 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", "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 }, "start": { "line": 10, "column": 9, "character": 138 },
"end": { "line": 10, "column": 19, "character": 148 }, "end": { "line": 10, "column": 19, "character": 148 },
"pos": 138 "pos": 138

@ -1,6 +1,6 @@
[{ [{
"code": "invalid-slotted-content", "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": { "start": {
"line": 7, "line": 7,
"column": 7, "column": 7,

@ -1,6 +1,6 @@
[{ [{
"code": "invalid-slotted-content", "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": { "start": {
"line": 7, "line": 7,
"column": 7, "column": 7,

@ -1,6 +1,6 @@
[{ [{
"code": "invalid-slotted-content", "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": { "start": {
"line": 1, "line": 1,
"column": 5, "column": 5,

Loading…
Cancel
Save