[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:
parent
9b088bb014
commit
f177b3d488
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in New Issue