From 1e37c945f44837557014714886b09caeeecc9504 Mon Sep 17 00:00:00 2001 From: Jon Bratseth Date: Thu, 24 Feb 2022 13:21:36 +0100 Subject: Make the error message meaningful for users If application packages uses prepare(ClusterSpec cluster, Capacity quantity, ProvisionLogger logger) { - throw new UnsupportedOperationException("Prepare on an XML host provisioner is not supported"); + throw new UnsupportedOperationException("Using is not supported when there is a " + + "hosts.xml file. Remove hosts.xml to make this deployable on " + + "Vespa Cloud and single-node self-hosted instances."); } private HostSpec host2HostSpec(Host host) { -- cgit v1.2.3