Fix package error message

fixes #5879
This commit is contained in:
Jean Flach 2017-12-18 11:04:40 +01:00
parent 640cdbebc6
commit e0bd3d183f

View File

@ -93,6 +93,7 @@ void ConfigPackagesHandler::HandlePost(const ApiUser::Ptr& user, HttpRequest& re
} 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) : ""); HttpUtility::GetLastParameter(params, "verboseErrors") ? DiagnosticInformation(ex) : "");
return;
} }
result1->Set("code", 200); result1->Set("code", 200);