Commit 804cf58a authored by Simon Goller's avatar Simon Goller Committed by Rahix

Let the system fail with error messages

The system result handling will pass the string representation of the
error to the panic macro.
parent 9e09249d
......@@ -34,7 +34,7 @@ pub fn handle_system_result<F>(mut f: F)
where
F: FnMut() -> anyhow::Result<()>,
{
if let Err(_) = f() {
panic!();
if let Err(err) = f() {
panic!(err.to_string());
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment