remove `io:format` here. If we want to log I'd prefer `error_logger:error_msg`