Get rid of extraneous panic
Getty Ritter
6 years ago
106 | 106 |
fs::File::open(path)?.read_to_end(&mut buf)?;
|
107 | 107 |
String::from_utf8(buf)?
|
108 | 108 |
},
|
109 | |
None => panic!("No template specified!"),
|
| 109 |
None => Err(format!("No template specified!"))?,
|
110 | 110 |
};
|
111 | 111 |
|
112 | 112 |
let recfile = rrecutils::Recfile::parse(input)?;
|