[FrameworkBundle] display actual target for error in AssetsInstallCommand

When assets:install fails because the target directory does not exist, it should display the actual directory it wanted to have instead of the configuration directive. In most cases, the target directory is retrieved from the kernel config and thus differs from the argument.
This commit is contained in:
Matthias Larisch 2020-05-06 14:08:15 +02:00 committed by Nicolas Grekas
parent 9b088bb014
commit f177b3d488
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ EOT
if (is_dir(\dirname($targetArg).'/web')) {
$targetArg = \dirname($targetArg).'/web';
} else {
throw new InvalidArgumentException(sprintf('The target directory "%s" does not exist.', $input->getArgument('target')));
throw new InvalidArgumentException(sprintf('The target directory "%s" does not exist.', $targetArg));
}
}
}