Remove generated file 'frontend.js'
[recipes.git] / backend / src / utils.rs
1 use log::error;
2
3 pub fn unwrap_print_err<T, E>(r: Result<T, E>) -> T
4 where
5 E: std::fmt::Debug,
6 {
7 if let Err(ref error) = r {
8 error!("{:?}", error);
9 }
10 r.unwrap()
11 }