Fix verbose errors in config files handler

This commit is contained in:
Michael Friedrich 2018-04-06 12:55:03 +02:00
parent 17846e04d8
commit 1b31ec8378
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ bool ConfigFilesHandler::HandleRequest(const ApiUser::Ptr& user, HttpRequest& re
response.WriteBody(content.CStr(), content.GetLength());
} catch (const std::exception& ex) {
HttpUtility::SendJsonError(response, params, 500, "Could not read file.",
HttpUtility::GetLastParameter(params, "verboseErrors") ? DiagnosticInformation(ex) : "");
DiagnosticInformation(ex));
}
return true;