* slib.scm (slib-parent-dir): throw error if #f returned from
authorGary Houston <ghouston@arglist.com>
Thu, 12 Dec 1996 00:16:05 +0000 (00:16 +0000)
committerGary Houston <ghouston@arglist.com>
Thu, 12 Dec 1996 00:16:05 +0000 (00:16 +0000)
%search-load-path.

ice-9/ChangeLog
ice-9/slib.scm

index 428a372..c41e52b 100644 (file)
@@ -1,3 +1,8 @@
+Wed Dec 11 21:06:05 1996  Gary Houston  <ghouston@actrix.gen.nz>
+
+       * slib.scm (slib-parent-dir): throw error if #f returned from
+       %search-load-path.
+
 Sat Nov 30 23:57:28 1996  Tom Tromey  <tromey@cygnus.com>
 
        * PLUGIN/greet, PLUGIN/split.sed, PLUGIN/this.configure: Removed.
index 5a3e3e7..0e717db 100644 (file)
 
 (define slib-parent-dir
   (let* ((path (%search-load-path "slib/require.scm")))
-    (make-shared-substring path 0 (- (string-length path) 17))))
+    (if path
+       (make-shared-substring path 0 (- (string-length path) 17))
+       (error "Could not find slib/require.scm in " %load-path))))
 
 (define-public (implementation-vicinity)
   (string-append slib-parent-dir "/"))