changed name of error

pull/7187/head
Efe S. Kucuk 5 years ago
parent 43c749947d
commit b9fa5ef3a5

@ -262,8 +262,8 @@ export default {
code: 'cyclical-const-tags',
message: `Cyclical dependency detected: ${cycle.join(' → ')}`
}),
invalid_style_directive: {
code: 'invalid-style-directive',
invalid_component_style_directive: {
code: 'invalid-component-style-directive',
message: 'Style directives on components are not currently supported.'
}
};

@ -73,7 +73,7 @@ export default class InlineComponent extends Node {
return component.error(node, compiler_errors.invalid_transition);
case 'StyleDirective':
return component.error(node, compiler_errors.invalid_style_directive);
return component.error(node, compiler_errors.invalid_component_style_directive);
default:
throw new Error(`Not implemented: ${node.type}`);

@ -1,6 +1,6 @@
[
{
"code": "invalid-style-directive",
"code": "invalid-component-style-directive",
"message": "Style directives on components are not currently supported.",
"start": { "line": 7, "column": 19, "character": 97 },
"end": { "line": 7, "column": 36, "character": 114 },

Loading…
Cancel
Save