Improve error reporting
parent
5a5088eb34
commit
2d24ed8e74
|
@ -166,7 +166,7 @@ class Application extends BaseApplication
|
||||||
{
|
{
|
||||||
$workingDir = $input->getParameterOption(array('--working-dir', '-d'));
|
$workingDir = $input->getParameterOption(array('--working-dir', '-d'));
|
||||||
if (false !== $workingDir && !is_dir($workingDir)) {
|
if (false !== $workingDir && !is_dir($workingDir)) {
|
||||||
throw new \RuntimeException('Invalid working directory specified.');
|
throw new \RuntimeException('Invalid working directory specified, '.$workingDir.' does not exist.');
|
||||||
}
|
}
|
||||||
|
|
||||||
return $workingDir;
|
return $workingDir;
|
||||||
|
|
Loading…
Reference in New Issue