Browse Source

Print a somewhat more useful message when the -i option is omitted

rdb 16 years ago
parent
commit
df9edbe1dd
1 changed files with 1 additions and 0 deletions
  1. 1 0
      direct/src/p3d/PackageMerger.py

+ 1 - 0
direct/src/p3d/PackageMerger.py

@@ -79,6 +79,7 @@ class PackageMerger:
         """ Reads the contents.xml file from the indicated sourceDir,
         and updates the internal set of packages appropriately. """
 
+        assert sourceDir != None, "No source directory was specified!"
         contentsFilename = Filename(sourceDir, 'contents.xml')
         doc = TiXmlDocument(contentsFilename.toOsSpecific())
         if not doc.LoadFile():