Skip to content

Commit 77828c7

Browse files
committed
Updated catch block.
Signed-off-by: Joshua Parker <joshua@joshuaparker.dev>
1 parent 15e20ae commit 77828c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Console/Commands/QueueRunCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
namespace Codefy\Framework\Console\Commands;
66

77
use Codefy\Framework\Console\ConsoleCommand;
8+
use Qubus\Exception\Data\TypeException;
89
use Qubus\NoSql\Exceptions\InvalidJsonException;
910
use Qubus\NoSql\Node;
1011
use Qubus\Support\Serializer\JsonSerializer;
@@ -50,7 +51,7 @@ public function handle(): int
5051
$object = new JsonSerializer()->unserialize($queue['object']);
5152
queue($object)->dispatch();
5253
}
53-
} catch (InvalidJsonException | ReflectionException $e) {
54+
} catch (InvalidJsonException | ReflectionException | TypeException $e) {
5455
return ConsoleCommand::FAILURE;
5556
}
5657

0 commit comments

Comments
 (0)