Index: trunk/PS-IPP-Config/lib/PS/IPP/Config.pm
===================================================================
--- trunk/PS-IPP-Config/lib/PS/IPP/Config.pm	(revision 17970)
+++ trunk/PS-IPP-Config/lib/PS/IPP/Config.pm	(revision 18086)
@@ -1,5 +1,5 @@
 # Copyright (c) 2006  Paul Price, Joshua Hoblitt
 #
-# $Id: Config.pm,v 1.89 2008-06-07 02:35:39 bills Exp $
+# $Id: Config.pm,v 1.90 2008-06-12 01:35:08 eugene Exp $
 
 package PS::IPP::Config;
@@ -373,4 +373,5 @@
     if ($scheme) {
         $scheme = lc($scheme);
+	# print "scheme: $scheme\n";
 
         if ($scheme eq 'neb') {
@@ -379,4 +380,5 @@
             if ($create_if_doesnt_exist) {
                 unless ($neb->stat( $name )) {
+		    # print "entry $name not found, creating...\n";
                     my $uri = $neb->create( $name );
                     unless(defined $uri) {
@@ -385,12 +387,21 @@
                     }
                     my $path = URI->new( $uri )->path;
+		    # print "created path: $path\n";
                     return $path;
                 }
             }
-            return $neb->find( $name );
-        }
+	    my $path = $neb->find( $name );
+	    if (not defined $path) { 
+		carp "neb entry $name not found, not created\n"; 
+		exit($PS_EXIT_DATA_ERROR);
+	    } 
+	    # print "found path: $path\n";
+            return $path;
+        }
+
         if ($scheme eq 'path' or $scheme eq 'file') {
             # guaranteed to have a scheme (path:// or file://)
             $name = $self->convert_filename_absolute( $name );
+	    # print "resolved path to $name\n";
         }
     }
@@ -408,4 +419,5 @@
         open F, ">$name" or die "failed to create $name";
         close F;
+	# print "created target $name\n";
     }
 
