*** empty log message ***
authorMatthew Mondor <mmondor@pulsar-zone.net>
Sat, 9 Jul 2005 19:00:04 +0000 (19:00 +0000)
committerMatthew Mondor <mmondor@pulsar-zone.net>
Sat, 9 Jul 2005 19:00:04 +0000 (19:00 +0000)
tests/js-test/js/httpd/httpd.js

index ac751ba..707351e 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: httpd.js,v 1.44 2005/07/09 11:10:14 mmondor Exp $ */
+/* $Id: httpd.js,v 1.45 2005/07/09 19:00:04 mmondor Exp $ */
 
 /*
  * Copyright (c) 2005, Matthew Mondor
@@ -96,7 +96,12 @@ function file_read2(fd)
        return contents;
 }
 
-eval(file_read('options.js'));         /* Configuration */
+try {
+       eval(file_read('options.js'));          /* Configuration */
+} catch (x) {
+       err.put(x + " while reading options file\n");
+       exit();
+}
 eval(file_read('ml.js'));              /* MLTag object for HTML generation */
 eval(file_read('root.js'));            /* Root object for virtual chroot(2) */
 
@@ -106,7 +111,7 @@ eval(file_read('root.js'));         /* Root object for virtual chroot(2) */
  * Server identification
  */
 SERVER_VERSION                 = 'mmondor_js_httpd/0.0.1 (NetBSD)';
-SERVER_CVSID   = '$Id: httpd.js,v 1.44 2005/07/09 11:10:14 mmondor Exp $';
+SERVER_CVSID   = '$Id: httpd.js,v 1.45 2005/07/09 19:00:04 mmondor Exp $';
 
 
 
@@ -581,7 +586,7 @@ FD.prototype.init = function(time, idx)
        this.process = process_query;
        /* Initial input timeout */
        this.updateTimeout(time);
-       /* For bread()/process_request()/process_post() */
+       /* For process_request()/process_post() */
        this.bread_buffer = '';
 
        /* Set this socket non-blocking */