FileLfsServlet: Make sendError protected
Change-Id: Id89b3cd0da86a535946feb15254737bbf8d855d4 Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
This commit is contained in:
parent
dfa6895687
commit
f5a40c26ac
|
@ -173,7 +173,19 @@ static class Error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void sendError(HttpServletResponse rsp, int status, String message)
|
/**
|
||||||
|
* Send an error response.
|
||||||
|
*
|
||||||
|
* @param rsp
|
||||||
|
* the servlet response
|
||||||
|
* @param status
|
||||||
|
* HTTP status code
|
||||||
|
* @param message
|
||||||
|
* error message
|
||||||
|
* @throws IOException
|
||||||
|
* on failure to send the response
|
||||||
|
*/
|
||||||
|
protected static void sendError(HttpServletResponse rsp, int status, String message)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
rsp.setStatus(status);
|
rsp.setStatus(status);
|
||||||
PrintWriter writer = rsp.getWriter();
|
PrintWriter writer = rsp.getWriter();
|
||||||
|
|
Loading…
Reference in New Issue