mirror of
https://github.com/ToxicCrack/PrintABrick.git
synced 2025-05-17 12:50:08 -07:00
Add error message to load models command
This commit is contained in:
parent
cefd66ec75
commit
71b362b346
@ -43,6 +43,11 @@ class LoadModelsCommand extends ContainerAwareCommand
|
|||||||
|
|
||||||
$ldraw = $input->getArgument('ldraw');
|
$ldraw = $input->getArgument('ldraw');
|
||||||
|
|
||||||
|
if(!$input->getOption('file') && !$input->getOption('all')){
|
||||||
|
$output->writeln('Either the --all or --file option is required');
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
if ($ldrawPath = realpath($ldraw)) {
|
if ($ldrawPath = realpath($ldraw)) {
|
||||||
$modelLoader->setLDrawLibraryContext($ldrawPath);
|
$modelLoader->setLDrawLibraryContext($ldrawPath);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user