Remove sub-expressions from parsing error

This commit is contained in:
Prearo, Andrea 2017-08-30 21:17:13 -07:00
parent af2c105114
commit c8471c4041

View File

@ -1589,8 +1589,7 @@ impl fmt::Display for ErrorKind {
RepeaterExpectsExpr =>
write!(f, "Missing expression for repetition operator."),
RepeaterUnexpectedExpr(ref e) =>
write!(f, "Invalid application of repetition operator to: \
'{}'.", e),
write!(f, "Invalid application of repetition operator."),
UnclosedCaptureName(ref s) =>
write!(f, "Capture name group for '{}' is not closed. \
(Missing a '>'.)", s),