diff --git a/src/Commands/JsonApiDrushCommands.php b/src/Commands/JsonApiDrushCommands.php index 0227173..38e1499 100644 --- a/src/Commands/JsonApiDrushCommands.php +++ b/src/Commands/JsonApiDrushCommands.php @@ -433,7 +433,13 @@ public function ingest( } } - + else { + throw new \Exception( + dt( + 'JSON payload seems to be missing or invalid JSON. Suspending the ingest' + ) + ); + } if ($field_name) { foreach ($files as $file) {