summaryrefslogtreecommitdiffstats
path: root/controller-server
diff options
context:
space:
mode:
authorØyvind Grønnesby <oyving@verizonmedia.com>2021-03-09 14:05:22 +0100
committerØyvind Grønnesby <oyving@verizonmedia.com>2021-03-09 14:05:22 +0100
commit8f4f52c5d45fbd4173a8e0fd361674711f3eebe8 (patch)
tree11bba0f3f41b5d11c7fe67291ae127f43362c7c5 /controller-server
parenta90392ff5effea5171334af1eb2d6bd7fa69d9f1 (diff)
Return error when we can't parse the JSON
Diffstat (limited to 'controller-server')
-rw-r--r--controller-server/src/main/java/com/yahoo/vespa/hosted/controller/restapi/application/ApplicationApiHandler.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/restapi/application/ApplicationApiHandler.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/restapi/application/ApplicationApiHandler.java
index 611de8fc2b3..6aeb30c3f09 100644
--- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/restapi/application/ApplicationApiHandler.java
+++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/restapi/application/ApplicationApiHandler.java
@@ -612,7 +612,7 @@ public class ApplicationApiHandler extends LoggingRequestHandler {
SlimeUtils.copyObject(responseSlime.get(), responseResultCursor);
return new SlimeJsonResponse(responseRoot);
} catch (JsonParseException e) {
- return new MessageResponse(response);
+ return ErrorResponse.internalServerError(response);
}
}