Global replace 'raise CgiExit' -> 'return ()' to match a future version of mod_caml.
[cocanwiki.git] / scripts / create_contact.ml
index 85cb4c1..30a531f 100644 (file)
@@ -1,7 +1,7 @@
 (* COCANWIKI - a wiki written in Objective CAML.
  * Written by Richard W.M. Jones <rich@merjis.com>.
  * Copyright (C) 2004 Merjis Ltd.
- * $Id: create_contact.ml,v 1.1 2004/09/21 15:55:48 rich Exp $
+ * $Id: create_contact.ml,v 1.2 2004/09/23 11:56:47 rich Exp $
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -42,20 +42,20 @@ let run r (q : cgi) (dbh : Dbi.connection) hostid _ _ =
   if name = "" then (
     error ~back_button:true ~title:"Name field missing"
       q "You must name your contact form.";
-    raise CgiExit
+    return ()
   );
 
   if subject = "" then (
     error ~back_button:true ~title:"Subject line missing"
       q "You must give a subject line, which appears on contact emails.";
-    raise CgiExit
+    return ()
   );
 
   if emails = [] then (
     error ~back_button:true ~title:"No email addresses"
       q ("There are no email addresses listed for this contact form.  You " ^
         "must list at least one valid email address.");
-    raise CgiExit
+    return ()
   );
 
   (* Update the database. *)