Commit Diff


commit - 79bf0650c0b21854551674a8306d638ac8760698
commit + f08447b045f0b36c3f6fb6186182c52e57c69680
blob - 193f8921b69da780c93b283e4d0e2273d89b0f40
blob + 13a63450f67b8933ce15f3ef0dc354a5a903fb43
--- gotweb/gotweb.c
+++ gotweb/gotweb.c
@@ -2348,12 +2348,10 @@ gw_template(size_t key, void *arg)
 		if (error) {
 			kerr = khtml_attr(gw_trans->gw_html_req, KELEM_DIV,
 			    KATTR_ID, "tmpl_err", KATTR__MAX);
-			if (kerr != KCGI_OK)
-				return 0;
-			kerr = khttp_puts(gw_trans->gw_req, "Error: ");
 			if (kerr != KCGI_OK)
 				return 0;
-			kerr = khttp_puts(gw_trans->gw_req, error->msg);
+			kerr = khttp_printf(gw_trans->gw_req, "Error: %s",
+			    error->msg);
 			if (kerr != KCGI_OK)
 				return 0;
 			kerr = khtml_closeelem(gw_trans->gw_html_req, 1);