From: Matthias Schmidt Date: Sun, 30 Dec 2012 18:04:45 +0000 (+0100) Subject: Improves error message in node builder X-Git-Tag: 2.0.0_Beta_1~646^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4202971e1881e685443d6e35bede30826da4ad6b;p=GitHub%2FWoltLab%2FWCF.git Improves error message in node builder 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. --- diff --git a/wcfsetup/install/files/lib/system/package/PackageInstallationNodeBuilder.class.php b/wcfsetup/install/files/lib/system/package/PackageInstallationNodeBuilder.class.php index 29edb67feb..80c0606403 100644 --- a/wcfsetup/install/files/lib/system/package/PackageInstallationNodeBuilder.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageInstallationNodeBuilder.class.php @@ -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'])));