diff options
author | Guillaume Pasquet <dev@etenil.net> | 2022-02-20 09:30:46 +0000 |
---|---|---|
committer | Guillaume Pasquet <dev@etenil.net> | 2022-02-20 09:30:46 +0000 |
commit | f69d2801069850b48c6424b50d0107799d56e2f8 (patch) | |
tree | eaba8081a01fa69bcb23576daf6b3178e8c13765 /src/barbfile.rs | |
parent | ca6531ed467d1772f7b4afed05a69d666b071c14 (diff) |
Handle errors (more) gracefully
Diffstat (limited to 'src/barbfile.rs')
-rw-r--r-- | src/barbfile.rs | 2 |
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 { |