InternalServerError logs to the server's terminal and dispatches to the client the 500 Internal Server Error. Internal Server errors are critical, so we log them to the `os.Stderr`.
(ctx iris.Context, err error, format string, args ...interface{})
| 115 | // and dispatches to the client the 500 Internal Server Error. |
| 116 | // Internal Server errors are critical, so we log them to the `os.Stderr`. |
| 117 | func InternalServerError(ctx iris.Context, err error, format string, args ...interface{}) { |
| 118 | LogFailure(os.Stderr, ctx, Fail(ctx, iris.StatusInternalServerError, err, format, args...)) |
| 119 | } |
| 120 | |
| 121 | // InternalServerErrorJSON acts exactly like `InternalServerError` but instead it sends the data as JSON. |
| 122 | // Useful for APIs. |
nothing calls this directly
no test coverage detected
searching dependent graphs…