pub fn log_as_err<T>(msg: String) -> Result<T, String>
Expand description

Prints a message as an error, and returns it as a Result.