diff --git a/src/Collections/Workflows.php b/src/Collections/Workflows.php index 99abf1aaa..09cd47295 100644 --- a/src/Collections/Workflows.php +++ b/src/Collections/Workflows.php @@ -104,9 +104,14 @@ public function create($type, array $options = []): Workflow ] ); if ($results->isError()) { + $this->logger->debug("Workflow Creation Failed: {error}", ['error' => $results->getStatusCodeReason()]); + $this->logger->debug("********************************************************************************"); + $this->logger->debug("results {debug}", ['debug' => print_r($results, true)]); + $this->logger->debug("********************************************************************************"); throw new TerminusException( "Workflow Creation Failed: {error}", - ['error' => $results->getStatusCodeReason()] + ['error' => $results->getStatusCodeReason()], + $results->getStatusCode() ); } $nickname = \uniqid(__CLASS__ . "-");