Exit gracefully if we dont generate a packet for debug:packet:dump
This commit is contained in:
parent
ad0ad73b0c
commit
176ecb16a8
@ -49,6 +49,11 @@ class PacketDump extends Command
|
||||
throw new \Exception('Unknown type: '.$this->argument('type'));
|
||||
}
|
||||
|
||||
if (is_null($pkt)) {
|
||||
$this->info(sprintf('No packet for [%s] of type [%s]',$this->argument('ftn'),$this->argument('type')));
|
||||
return self::SUCCESS;
|
||||
}
|
||||
|
||||
if (! $this->argument('file')) {
|
||||
$this->info('Item Name:'.$pkt->name);
|
||||
$this->info('Item Type:'.get_class($pkt));
|
||||
|
Loading…
Reference in New Issue
Block a user