]> git.decadent.org.uk Git - dak.git/commitdiff
dak/copy_installer.py: Include which directory doesn't exist in exception
authorChris Lamb <lamby@debian.org>
Mon, 24 Aug 2015 01:23:49 +0000 (03:23 +0200)
committerChris Lamb <lamby@debian.org>
Mon, 24 Aug 2015 01:23:49 +0000 (03:23 +0200)
Signed-off-by: Chris Lamb <lamby@debian.org>
dak/copy_installer.py

index c70b048dfe22bc9d8c24a76a747a9230df5f556e..2e8a04875fdcd3c5a2a7582f52ee643aa464e5a7 100755 (executable)
@@ -92,7 +92,7 @@ class InstallerCopier:
 
     def check_dir(self, dir, message):
         if not os.path.isdir(dir):
-            raise IOError(message)
+            raise IOError("%s (%s)" % (message, dir))
 
     def check_architecture(self, arch_dir):
         architecture = re.sub('.*?/installer-(.*?)/.*', r'\1', arch_dir)