mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Merge pull request #5881 from Icinga/fix/api-package
Fix package error message
This commit is contained in:
commit
0d40009a3c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user