Why not just call `WP_CLI::error( $error->get_error_message() )`?