summaryrefslogtreecommitdiff
path: root/cgi.h
diff options
context:
space:
mode:
authorVincent Douillet <vincent@vdouillet.fr>2023-08-01 23:09:57 +0200
committerVincent Douillet <vincent@vdouillet.fr>2023-08-07 14:57:21 +0200
commitf172ffca292594147939280dab20cb03a4921fb6 (patch)
treebc63edcd5fbd474cdfdcced0d89b659c3bcc1cb4 /cgi.h
parent62b01654da4f1ae1a9aaeab106cea5e7bb9d77e3 (diff)
add log messages
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 */