diff --git a/modules/angular2/src/transform/common/annotation_matcher.dart b/modules/angular2/src/transform/common/annotation_matcher.dart index 2178f2d170..014ed8ae3c 100644 --- a/modules/angular2/src/transform/common/annotation_matcher.dart +++ b/modules/angular2/src/transform/common/annotation_matcher.dart @@ -84,9 +84,7 @@ class AnnotationMatcher extends ClassMatcherBase { bool _implementsWithWarning(Annotation annotation, AssetId assetId, List interfaces) { ClassDescriptor descriptor = firstMatch(annotation.name, assetId); - if (descriptor == null) { - throw 'Unable to locate descriptor for ${annotation.name} in ${assetId}'; - } + if (descriptor == null) return false; return implements(descriptor, interfaces, missingSuperClassWarning: 'Missing `custom_annotation` entry for `${descriptor.superClass}`.'); }