pub fn log_as_err<T>(msg: String) -> Result<T, String>
Prints a message as an error, and returns it as a Result.
Result