Function rstats::error::data_error

source ยท
pub fn data_error<T>(msg: impl Into<String>) -> Result<T, RError<String>>
Expand description

Convenience function for building RError::DataError(String)
from payload message, which can be either literal &str or String. String allows splicing in values of variables for debugging, using format!