summaryrefslogtreecommitdiff
path: root/cgi.h
diff options
context:
space:
mode:
Diffstat (limited to 'cgi.h')
-rw-r--r--cgi.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/cgi.h b/cgi.h
index 25988f3..aff6bdf 100644
--- a/cgi.h
+++ b/cgi.h
@@ -33,9 +33,9 @@
#include <kcgi.h>
-#include "error.h"
-
-#define K_OK(kcgi_call) if(kcgi_call != KCGI_OK) \
- return VAULT_CGI_ERROR
+#define K_OK(kcgi_call, r) \
+if(kcgi_call != KCGI_OK) { \
+ kutil_warn(r, NULL, "Unexpected CGI error"); \
+}
#endif /* VAULT_CGI_H */