rok_utils/errors/
context.rs1use crate::errors::kinds::RokError;
2
3pub fn wrap_error<E>(error: E, message: impl Into<String>) -> RokError
4where
5 E: std::error::Error + Send + Sync + 'static,
6{
7 RokError::Wrapped {
8 message: message.into(),
9 source: Box::new(error),
10 }
11}