mirror of https://github.com/Icinga/icinga2.git
parent
9c8e72775d
commit
cf570c9a93
|
@ -98,7 +98,9 @@ void ConfigPackagesHandler::HandlePost(const ApiUser::Ptr& user, HttpRequest& re
|
||||||
boost::mutex::scoped_lock lock(ConfigPackageUtility::GetStaticMutex());
|
boost::mutex::scoped_lock lock(ConfigPackageUtility::GetStaticMutex());
|
||||||
ConfigPackageUtility::CreatePackage(packageName);
|
ConfigPackageUtility::CreatePackage(packageName);
|
||||||
} catch (const std::exception& ex) {
|
} catch (const std::exception& ex) {
|
||||||
HttpUtility::SendJsonError(response, 500, "Could not create package.", "");
|
HttpUtility::SendJsonError(response, 500, "Could not create package.",
|
||||||
|
HttpUtility::GetLastParameter(params, "verboseErrors") ? DiagnosticInformation(ex) : "");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
result1->Set("code", 200);
|
result1->Set("code", 200);
|
||||||
|
|
Loading…
Reference in New Issue