Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Commit f6d2742

Browse files
committed
fix(directives): Better error message for malformed directive class names
1 parent 595ffdf commit f6d2742

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/directive.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class Directive {
4242
isComponent = true;
4343
$name = $name.substring(0, $name.length - _COMPONENT.length);
4444
} else {
45-
throw "Directive name must end with $_DIRECTIVE or $_ATTR_DIRECTIVE.";
45+
throw "Directive name '$name' must end with $_DIRECTIVE, $_ATTR_DIRECTIVE, $_COMPONENT or have a \$selector field.";
4646
}
4747

4848
// Check the $transclude.

0 commit comments

Comments
 (0)