diff options
author | John Keeping <john@keeping.me.uk> | 2015-04-05 16:54:51 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2015-04-07 15:32:28 +0200 |
commit | d99b312c90fce32a7fc83a227bcb670c36f5d488 (patch) | |
tree | be8fb900f22df93d510c5d184c62318dc6aa09d1 | |
parent | 667224994be495ecb41625f543edbe0348dc9016 (diff) | |
download | cgit-d99b312c90fce32a7fc83a227bcb670c36f5d488.tar.gz |
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>
-rw-r--r-- | ui-snapshot.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |