From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason at zx2c4.com (Jason A. Donenfeld) Date: Tue, 7 Apr 2015 15:23:03 +0200 Subject: [PATCH 01/17] ui-shared: add cgit_print_error_page() function In-Reply-To: <142f58e03d1444c0d797a8bbf60593f671ac34ab.1428248621.git.john@keeping.me.uk> References: <142f58e03d1444c0d797a8bbf60593f671ac34ab.1428248621.git.john@keeping.me.uk> Message-ID: On Sun, Apr 5, 2015 at 5:54 PM, John Keeping 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: