Just put `generic_error_message` inline here, rather than assigning in to `err_msg`