Improves error message in node builder
authorMatthias Schmidt <gravatronics@live.com>
Sun, 30 Dec 2012 18:04:45 +0000 (19:04 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 30 Dec 2012 18:04:45 +0000 (19:04 +0100)
If you install an application with packages currently uninstalled and one of the packages triggers the error, you currently don't get the info which package triggers the error. This commit changes that.

wcfsetup/install/files/lib/system/package/PackageInstallationNodeBuilder.class.php

index 29edb67feb1e222e4df16584fdc46dc9aab9f995..80c06064039fc8b15d829f21bd0670eab76a626f 100644 (file)
@@ -424,7 +424,7 @@ class PackageInstallationNodeBuilder {
                                        continue;
                                }
                                
-                               throw new SystemException("Unable to find required package '".$package['file']."' within archive.");
+                               throw new SystemException("Unable to find required package '".$package['file']."' within archive of package '".$this->installation->queue->package."'.");
                        }
                        
                        $fileName = FileUtil::getTemporaryFilename('package_', preg_replace('!^.*(?=\.(?:tar\.gz|tgz|tar)$)!i', '', basename($package['file'])));