added error output to get_message