From: John Keeping Date: Fri, 14 Aug 2015 11:47:05 +0000 (+0100) Subject: snapshot: use cgit_print_error_page() instead of html_status() X-Git-Tag: v0.12~68 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=048f195eaf2fedb56987f0c8c89b9fd46375aa87;p=cgit snapshot: use cgit_print_error_page() instead of html_status() This provides a formatted error response rather than a simple HTTP error. Signed-off-by: John Keeping --- 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);