diff options
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 |
commit | 8f4f52c5d45fbd4173a8e0fd361674711f3eebe8 (patch) | |
tree | 11bba0f3f41b5d11c7fe67291ae127f43362c7c5 /controller-server | |
parent | a90392ff5effea5171334af1eb2d6bd7fa69d9f1 (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.java | 2 |
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); } } |