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 <john@keeping.me.uk>
Bu işleme şunda yer alıyor:
John Keeping 2015-08-14 12:47:05 +01:00 işlemeyi yapan: Jason A. Donenfeld
ebeveyn 2b3e76a9f9
işleme 048f195eaf
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme

Dosyayı Görüntüle

@ -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);