Skip to content

Commit 1967339

Browse files
committed
1 parent 27ab444 commit 1967339

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,9 @@ protected function buildPluginNodes(array $instructions)
655655
if ($count === 0) {
656656
// Abort if an empty list of instructions is received. This most likely indicates that
657657
// the update instructions have been erroneously discarded.
658-
throw new \Exception('Received an empty list of instructions.');
658+
$action = $this->installation->getAction();
659+
$name = $this->installation->getArchive()->getPackageInfo('name');
660+
throw new \Exception("Received an empty list of {$action} instructions for package '{$name}'.");
659661
}
660662

661663
if (!empty($this->node)) {

0 commit comments

Comments
 (0)