diff options
author | Neal H. Walfield <neal@pep.foundation> | 2019-06-05 17:26:19 +0200 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2019-06-05 17:28:23 +0200 |
commit | 3b4ac1406c42ec751f6cc6fbdc96d7a88e6da75c (patch) | |
tree | 5903a37d6976cfe0508e73dc4bf9eedc07a9ea55 | |
parent | 269724b98744471900b672f06e8d9d93d26b93d3 (diff) |
rfc2822: Improve expect message
-rw-r--r-- | rfc2822/src/grammar.lalrpop | 3 |
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( |