chiark / gitweb /
New scripts/setup which interactively sets up a DisOrder configuration
[disorder] / server / cgimain.c
index 674e9c7827c00203d180f3e7bc9b2179ce656bdd..5a79bb56c75418b4c9e2d5c792f2df1a6ae04298 100644 (file)
@@ -117,7 +117,8 @@ int main(int argc, char **argv) {
       }
       if(best_cookie != -1)
        login_cookie = cd.cookies[best_cookie].value;
       }
       if(best_cookie != -1)
        login_cookie = cd.cookies[best_cookie].value;
-    }
+    } else
+      error(0, "could not parse cookie field '%s'", cookie_env);
   }
   disorder_cgi_login(&s, &output);
   disorder_cgi(&output, &s);
   }
   disorder_cgi_login(&s, &output);
   disorder_cgi(&output, &s);