Adding nicer error messages. - geomyidae - A small C-based gopherd.
git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/geomyidae/
Log
Files
Refs
Tags
README
LICENSE
---
commit 63cd2d298843b1f144252f1902a7e1890000e1d7
parent f2c2634b2cdd5ebb5dfc87dbc345f416a5fa7a41
Author: Christoph Lohmann <20h@r-36.net>
Date:   Tue,  8 Mar 2011 14:08:08 +0100

Adding nicer error messages.

Diffstat:
  M main.c                              |       4 ++--

1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/main.c b/main.c
@@ -45,7 +45,7 @@ char *argv0;
 char *stdbase = "/var/gopher";
 char *stdport = "70";
 char *indexf = "/index.gph";
-char *err = "0Sorry, but the requested token could not be found\tErr"
+char *err = "3Sorry, but the requested token '%s' could not be found.\tErr"
             "\tlocalhost\t70\r\n.\r\n\r\n";
 char *htredir = "\n"
                 "