From 6867ed212b4c941bbdfc2ab40391b79ac04c14c5 Mon Sep 17 00:00:00 2001 From: Rado Kirov Date: Thu, 14 May 2015 22:04:47 -0700 Subject: [PATCH] fix(binder): adds more explicit error message thrown. --- lib/core_dom/element_binder_builder.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/core_dom/element_binder_builder.dart b/lib/core_dom/element_binder_builder.dart index 005fe901b..88713aada 100644 --- a/lib/core_dom/element_binder_builder.dart +++ b/lib/core_dom/element_binder_builder.dart @@ -93,7 +93,8 @@ class ElementBinderBuilder { if (annotation.map != null) { annotation.map.forEach((attrName, mapping) { if (mapping == null) { - throw "Null mapping value for '${attrName}' on annotation with selector '${annotation.selector}'."; + throw "Null mapping value for '${attrName}' on annotation with " + "selector '${annotation.selector}' with map '${annotation.map}'."; } Match match = _MAPPING.firstMatch(mapping); if (match == null) {