about summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-12-21 18:19:44 +0100
committerbptato <nincsnevem662@gmail.com>2023-12-21 18:19:44 +0100
commitaad2c9860410cdbe0a80b48aba74437994cfd3e1 (patch)
tree3147d451b902e5e68e37914c34391a46db3933e8 /doc
parent98fd959625c2f9227066fdd43590af12c8f40e91 (diff)
downloadchawan-aad2c9860410cdbe0a80b48aba74437994cfd3e1.tar.gz
cgi: return ConnectionError when script is not executable
Diffstat (limited to 'doc')
-rw-r--r--doc/localcgi.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/localcgi.md b/doc/localcgi.md
index 1d46b3c6..2d15e6af 100644
--- a/doc/localcgi.md
+++ b/doc/localcgi.md
@@ -186,6 +186,11 @@ cgi-dir = "/usr/local/libexec/chawan/cgi-bin"
 
 and then put your script in `/usr/local/libexec/chawan/cgi-bin`.
 
+### My script is returning a "Failed to execute script" error message.
+
+This means the `execl` call to the script failed. Make sure that your CGI
+script's executable bit is set, i.e. run `chmod +x /path/to/cgi/script`.
+
 ### My script is returning an "invalid CGI path" error message.
 
 Make sure that you did not include leading slashes. Reminder:
@@ -203,11 +208,6 @@ so e.g. if your binary is in `~/src/chawan/target/release/bin/cha`, but you
 put your CGI script to `/usr/local/libexec/chawan/cgi-bin`, then it will
 not work.
 
-### My script returns a page saying "Failed to execute script".
-
-This means the `execl` call to the script failed. Make sure that your CGI
-script's executable bit is set, i.e. run `chmod +x /path/to/cgi/script`.
-
 ### My script is returning a "failed to set up CGI script" error message.
 
 This means that either `pipe` or `fork` failed. Something strange is going on