Index: pkg/compiler/lib/src/parser/partial_elements.dart |
diff --git a/pkg/compiler/lib/src/parser/partial_elements.dart b/pkg/compiler/lib/src/parser/partial_elements.dart |
index 6cbc22c5707ca0d863fc9af0b9305c04148651bb..26631eaf2b6f70c39b8f736a0048a5774b181421 100644 |
--- a/pkg/compiler/lib/src/parser/partial_elements.dart |
+++ b/pkg/compiler/lib/src/parser/partial_elements.dart |
@@ -451,7 +451,7 @@ Node parse(ParsingContext parsing, ElementX element, PartialElement partial, |
doParse(new Parser(listener)); |
} on ParserError catch (e) { |
partial.hasParseError = true; |
- return new ErrorNode(element.position, e.kind, e.arguments); |
+ return new ErrorNode(element.position, e.message); |
} |
Node node = listener.popNode(); |
assert(listener.nodes.isEmpty); |