From mboxrd@z Thu Jan 1 00:00:00 1970 From: john at keeping.me.uk (John Keeping) Date: Fri, 14 Aug 2015 12:47:05 +0100 Subject: [PATCH v2 05/22] snapshot: use cgit_print_error_page() instead of html_status() In-Reply-To: References: Message-ID: <8ced9456142ff87c411ac82c22db4e16d6afaf61.1439552492.git.john@keeping.me.uk> This provides a formatted error response rather than a simple HTTP error. Signed-off-by: John Keeping --- ui-snapshot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-snapshot.c b/ui-snapshot.c index cb34f4b..bf4bcd7 100644 --- a/ui-snapshot.c +++ b/ui-snapshot.c @@ -213,7 +213,7 @@ void cgit_print_snapshot(const char *head, const char *hex, if (!hex && dwim) { hex = get_ref_from_filename(ctx.repo->url, filename, f); if (hex == NULL) { - html_status(404, "Not found", 0); + cgit_print_error_page(404, "Not found", "Not found"); return; } prefix = xstrdup(filename); -- 2.5.0.466.g9af26fa