summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2019-06-05 17:26:19 +0200
committerNeal H. Walfield <neal@pep.foundation>2019-06-05 17:28:23 +0200
commit3b4ac1406c42ec751f6cc6fbdc96d7a88e6da75c (patch)
tree5903a37d6976cfe0508e73dc4bf9eedc07a9ea55
parent269724b98744471900b672f06e8d9d93d26b93d3 (diff)
rfc2822: Improve expect message
-rw-r--r--rfc2822/src/grammar.lalrpop3
1 files changed, 2 insertions, 1 deletions
diff --git a/rfc2822/src/grammar.lalrpop b/rfc2822/src/grammar.lalrpop
index 0df87445..4f664c5c 100644
--- a/rfc2822/src/grammar.lalrpop
+++ b/rfc2822/src/grammar.lalrpop
@@ -645,7 +645,8 @@ addr_spec : Vec<Component> = {
// The local part may start with comments and the domain part
// may end with comments.
- let local_part = l.pop().expect("empty local_part");
+ let local_part = l.pop()
+ .expect(&format!("empty local-part ({:?})", input));
let domain = d.remove(0);
let mut v = components_merge(