aboutsummaryrefslogtreecommitdiff
path: root/src/barbfile.rs
diff options
context:
space:
mode:
authorGuillaume Pasquet <dev@etenil.net>2022-02-20 09:30:46 +0000
committerGuillaume Pasquet <dev@etenil.net>2022-02-20 09:30:46 +0000
commitf69d2801069850b48c6424b50d0107799d56e2f8 (patch)
treeeaba8081a01fa69bcb23576daf6b3178e8c13765 /src/barbfile.rs
parentca6531ed467d1772f7b4afed05a69d666b071c14 (diff)
Handle errors (more) gracefully
Diffstat (limited to 'src/barbfile.rs')
-rw-r--r--src/barbfile.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/barbfile.rs b/src/barbfile.rs
index a039253..1a17796 100644
--- a/src/barbfile.rs
+++ b/src/barbfile.rs
@@ -158,7 +158,7 @@ impl FromStr for BarbFile {
}
if let Some(_) = line.find(':') {
- headers.push(decode_header(line).unwrap());
+ headers.push(decode_header(line).map_err(|_| BarbParseError {})?);
}
if let None = filter {