]> granicus.if.org Git - icinga2/commitdiff
Fix package error message 5881/head
authorJean Flach <jean-marcel.flach@icinga.com>
Mon, 18 Dec 2017 10:04:40 +0000 (11:04 +0100)
committerJean Flach <jean-marcel.flach@icinga.com>
Mon, 18 Dec 2017 10:04:40 +0000 (11:04 +0100)
fixes #5879

lib/remote/configpackageshandler.cpp

index 0b41cd65b0d2ce016c1afd1d638c30bcfce01773..1ee6cb4099f922c73ac27e243bb416fe42c616cc 100644 (file)
@@ -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);