Skip to content

Commit

Permalink
Merge pull request #66 from LibreSign/feat/improvement-at-response
Browse files Browse the repository at this point in the history
feat: return body when got error
  • Loading branch information
vitormattos authored Apr 19, 2024
2 parents 96829df + fe5ca50 commit c4de170
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NextcloudApiContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ public function fetchFieldFromPreviousJsonResponse(string $path): void {
$keys = explode('.', $path);
$value = $responseArray;
foreach ($keys as $key) {
Assert::assertArrayHasKey($key, $value, 'Key [' . $key . '] of path [' . $path . '] not found.');
Assert::assertArrayHasKey($key, $value, 'Key [' . $key . '] of path [' . $path . '] not found at body: ' . json_encode($responseArray));
$value = $value[$key];
}
if (isset($alias)) {
Expand Down

0 comments on commit c4de170

Please sign in to comment.