diff options
Diffstat (limited to 'source/cgit.c')
| -rw-r--r-- | source/cgit.c | 10 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1 file changed, 5 insertions, 5 deletions
diff --git a/source/cgit.c b/source/cgit.c index 90ee702..72e36c8 100644 --- a/source/cgit.c +++ b/source/cgit.c @@ -84,7 +84,7 @@ static NORETURN void die_routine(const char *msg, va_list params) { // The error page abandons any cache fill in progress, so the message // reaches the visitor rather than the cache file stdout points at. - cgit_vprint_error_page(400, "Bad request", msg, params); + cgit_vprint_error_page(400, "Bad Request", msg, params); exit(0); } @@ -1095,7 +1095,7 @@ static int prepare_repo_cmd(int nongit) if (repo_get_oid(the_repository, ctx.qry.head, &oid)) { char *old_head = ctx.qry.head; ctx.qry.head = xstrdup(ctx.repo->defbranch); - cgit_print_error_page(404, "Not found", + cgit_print_error_page(404, "Not Found", "Invalid branch: %s", old_head); free(old_head); return 1; @@ -1130,18 +1130,18 @@ static void process_request(void) cmd = cgit_get_cmd(); if (!cmd) { ctx.page.title = "cgit error"; - cgit_print_error_page(404, "Not found", "Invalid request"); + cgit_print_error_page(404, "Not Found", "Invalid request"); return; } if (!ctx.cfg.enable_http_clone && cmd->is_clone) { ctx.page.title = "cgit error"; - cgit_print_error_page(404, "Not found", "Invalid request"); + cgit_print_error_page(404, "Not Found", "Invalid request"); return; } if (cmd->want_repo && !ctx.repo) { - cgit_print_error_page(400, "Bad request", + cgit_print_error_page(400, "Bad Request", "No repository selected"); return; } |
