Merge pull request #5881 from Icinga/fix/api-package

Fix package error message
This commit is contained in:
Gunnar Beutner 2017-12-18 11:30:07 +01:00 committed by GitHub
commit 0d40009a3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View 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);