Fix package error message

fixes #5879

refs #5881
This commit is contained in:
Jean Flach 2017-12-18 11:04:40 +01:00 committed by Michael Friedrich
parent 9c8e72775d
commit cf570c9a93
1 changed files with 3 additions and 1 deletions

View File

@ -98,7 +98,9 @@ void ConfigPackagesHandler::HandlePost(const ApiUser::Ptr& user, HttpRequest& re
boost::mutex::scoped_lock lock(ConfigPackageUtility::GetStaticMutex());
ConfigPackageUtility::CreatePackage(packageName);
} 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);