Added check for empty package input
This commit is contained in:
parent
161ef357a2
commit
1e0ea848b8
1 changed files with 6 additions and 0 deletions
|
@ -211,6 +211,12 @@
|
|||
return 0;
|
||||
}
|
||||
|
||||
if($package === '')
|
||||
{
|
||||
Console::outError('No package specified, use --package or -p to specify a package', true, 1);
|
||||
return 1;
|
||||
}
|
||||
|
||||
if(!is_file($package))
|
||||
{
|
||||
Console::outError(sprintf("Unable to find package '%s'", $package), true, 1);
|
||||
|
|
Loading…
Add table
Reference in a new issue