domtool-admin returns proper exit code on OpenSSL exception
authoradamch <adamch>
Sun, 9 Dec 2007 12:52:57 +0000 (12:52 +0000)
committeradamch <adamch>
Sun, 9 Dec 2007 12:52:57 +0000 (12:52 +0000)
src/main-admin.sml

index 4ce4170..0e404c6 100644 (file)
@@ -61,5 +61,6 @@ val _ =
          app (fn s => (print s; print "\n")) (Acl.users ()))
                      
        | _ => (print "Invalid command-line arguments\n";
-              print "See the documentation: http://wiki.hcoop.net/wiki/DomTool/AdminProcedures\n"))
-    handle OpenSSL.OpenSSL s => print ("OpenSSL exception: " ^ s ^ "\n")
+              print "See the documentation: http://wiki2.hcoop.net/DomTool/AdminProcedures\n"))
+    handle OpenSSL.OpenSSL s => (print ("OpenSSL exception: " ^ s ^ "\n");
+                                OS.Process.exit OS.Process.failure)