Browse code

Add debug output for shop api tester command

Benjamin Roth authored on13/11/2024 16:05:01
Showing1 changed files
... ...
@@ -78,6 +78,7 @@ class ShopwareApiTester extends Command
78 78
         }
79 79
 
80 80
         $io->error(sprintf('Error when querying the Shopware API. HTTP Status returned: %s',$Result->getStatusCode()));
81
+        $dumper->dump(($cloner->cloneVar(json_validate($Result->getContent(false)) ? json_decode($Result->getContent(false), true) : $Result)));
81 82
 
82 83
         return self::FAILURE;
83 84
     }