Skip to content

Commit

Permalink
Merge pull request #64 from LibreSign/feat/return-json-when-got-error…
Browse files Browse the repository at this point in the history
…-to-match-jq

fix: Return json when got error to match JsonQuery
  • Loading branch information
vitormattos authored Apr 10, 2024
2 parents 114818c + 5530028 commit 70c81d4
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 @@ -277,7 +277,7 @@ private function testAndGetActualValue(array $value, string $json): string {
$json
);
Assert::assertNotEmpty($actual,
"The follow JsonQuery returned empty value: " . $value['key']
"The follow JsonQuery returned empty value: {$value['key']} Json: $json"
);
if (!is_string($actual)) {
$actual = json_encode($actual);
Expand Down

0 comments on commit 70c81d4

Please sign in to comment.