From b53685db594035ea23408946ce4623c5591a364e Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Thu, 12 Apr 2018 19:24:08 +0200 Subject: [PATCH] Fix error handling on config package delete --- lib/remote/configpackageshandler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/remote/configpackageshandler.cpp b/lib/remote/configpackageshandler.cpp index 2ecf78d4c..8ad25d0cb 100644 --- a/lib/remote/configpackageshandler.cpp +++ b/lib/remote/configpackageshandler.cpp @@ -135,12 +135,13 @@ void ConfigPackagesHandler::HandleDelete(const ApiUser::Ptr& user, HttpRequest& } catch (const std::exception& ex) { HttpUtility::SendJsonError(response, params, 500, "Failed to delete package '" + packageName + "'.", DiagnosticInformation(ex)); + return; } Dictionary::Ptr result1 = new Dictionary({ { "code", 200 }, { "package", packageName }, - { "status", "Created package." } + { "status", "Deleted package." } }); Dictionary::Ptr result = new Dictionary({