diff options
Diffstat (limited to 'controller-server/src/main/java/com/yahoo/vespa/hosted')
-rw-r--r-- | controller-server/src/main/java/com/yahoo/vespa/hosted/controller/restapi/billing/BillingApiHandlerV2.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/restapi/billing/BillingApiHandlerV2.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/restapi/billing/BillingApiHandlerV2.java index 7f3ff06ce88..bdd89abfa4c 100644 --- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/restapi/billing/BillingApiHandlerV2.java +++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/restapi/billing/BillingApiHandlerV2.java @@ -413,7 +413,7 @@ public class BillingApiHandlerV2 extends RestApiRequestHandler<BillingApiHandler if (response.isSuccess()) { return new MessageResponse("Plan: " + planId.value()); } else { - throw new RestApiException.BadRequest("Could not change plan: " + response.getErrorMessage()); + throw new RestApiException.BadRequest("Could not change plan: " + response.getErrorMessage().get()); } } |