Skip to content

Commit 9219a0c

Browse files
committed
fixed including response for better debugging
1 parent d19d4b5 commit 9219a0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/VCS/Adapter/GiteaTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ private function createFile(string $owner, string $repo, string $filepath, strin
8181
curl_close($ch);
8282

8383
if ($httpCode >= 400) {
84-
throw new \Exception("Failed to create file {$filepath}: HTTP {$httpCode}");
84+
throw new \Exception("Failed to create file {$filepath}: HTTP {$httpCode} - {$response}");
8585
}
8686
}
8787

@@ -160,7 +160,7 @@ public function testGetRepositoryTreeWithSlashInBranchName(): void
160160
curl_close($ch);
161161

162162
if ($httpCode >= 400) {
163-
throw new \Exception("Failed to create branch: HTTP {$httpCode}");
163+
throw new \Exception("Failed to create branch: HTTP {$httpCode} - {$response}");
164164
}
165165

166166
$tree = $this->vcsAdapter->getRepositoryTree(self::$owner, $repositoryName, 'feature/test-branch');

0 commit comments

Comments
 (0)