Browse Source

more debug output

Dave Schuyler 20 years ago
parent
commit
97428d8d0b
1 changed files with 3 additions and 3 deletions
  1. 3 3
      panda/src/pgraph/loader.cxx

+ 3 - 3
panda/src/pgraph/loader.cxx

@@ -449,7 +449,7 @@ load_file(const Filename &filename, bool search) const {
     return NULL;
     return NULL;
   }
   }
 
 
-  for (int i = 0; i < num_files; i++) {
+  for (int i = 0; i < num_files; ++i) {
     const Filename &path = results.get_file(i);
     const Filename &path = results.get_file(i);
     LoaderFileType *type = results.get_file_type(i);
     LoaderFileType *type = results.get_file_type(i);
     PT(PandaNode) result = type->load_file(path, true);
     PT(PandaNode) result = type->load_file(path, true);
@@ -462,8 +462,8 @@ load_file(const Filename &filename, bool search) const {
   if (search) {
   if (search) {
     loader_cat.error()
     loader_cat.error()
       << "Couldn't load file " << filename
       << "Couldn't load file " << filename
-      << ": all matching files on model path invalid.\n";
-
+      << ": all matching files on model path invalid "
+      << "(the model path is currently: \"" << get_model_path() << "\")\n";
   } else {
   } else {
     loader_cat.error()
     loader_cat.error()
       << "Couldn't load file " << filename
       << "Couldn't load file " << filename