[PATCH 01/17] ui-shared: add cgit_print_error_page() function

Jason A. Donenfeld Jason at zx2c4.com
Tue Apr 7 15:23:03 CEST 2015


On Sun, Apr 5, 2015 at 5:54 PM, John Keeping <john at keeping.me.uk> wrote:
>
> +void cgit_print_error_page(int code, const char *msg, const char *fmt,
> ...)
> +{
> +       va_list ap;
> +       ctx.page.status = 404;
> +       ctx.page.statusmsg = "Not found";
>

Shouldn't status = code here, not hardcoded 404?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20150407/e2ef04b0/attachment.html>


More information about the CGit mailing list