From e0bd3d183f33ab483c38dd7f32829620760e48b6 Mon Sep 17 00:00:00 2001 From: Jean Flach Date: Mon, 18 Dec 2017 11:04:40 +0100 Subject: [PATCH] Fix package error message fixes #5879 --- lib/remote/configpackageshandler.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/remote/configpackageshandler.cpp b/lib/remote/configpackageshandler.cpp index 0b41cd65b..1ee6cb409 100644 --- a/lib/remote/configpackageshandler.cpp +++ b/lib/remote/configpackageshandler.cpp @@ -93,6 +93,7 @@ void ConfigPackagesHandler::HandlePost(const ApiUser::Ptr& user, HttpRequest& re } catch (const std::exception& ex) { HttpUtility::SendJsonError(response, 500, "Could not create package.", HttpUtility::GetLastParameter(params, "verboseErrors") ? DiagnosticInformation(ex) : ""); + return; } result1->Set("code", 200);