src/admin_console_cgi/main.cc
void Error(const std::string& message) {
  Logger::Log(EVENT_ERROR, "%s", message.c_str());
  HttpResponse response;
  response.Reset(HttpConst::kStatus503, message);
  if (!CgiHandler::WriteResponse(response)) {
    Logger::Log(EVENT_ERROR, "CGI failed to write error response.");
  }
}
// Utility method.
// Log given error and send it to CGI.
Utility method.
Log given error and send it to CGI.
Utility method . Log given error and send it to CGI .
void Error(const std::string& message) {
  Logger::Log(EVENT_ERROR, "%s", message.c_str());
  HttpResponse response;
  response.Reset(HttpConst::kStatus503, message);
  if (!CgiHandler::WriteResponse(response)) {
    Logger::Log(EVENT_ERROR, "CGI failed to write error response.");
  }
}
void Error ( const std :: string & message ) { Logger :: Log ( EVENT_ERROR , " " , message . c_str ( ) ) ; HttpResponse response ; response . Reset ( HttpConst :: kStatus503 , message ) ; if ( ! CgiHandler :: WriteResponse ( response ) ) { Logger :: Log ( EVENT_ERROR , " " ) ; } }
Utility method.
Utility method .