Skip to content

Commit 3a0eacb

Browse files
authored
Merge pull request #3500 from josefbehr/fix/empty-keyvaluepairs-error-message
fix(api): correct misleading error message on empty keyValuePairs
2 parents 6f49376 + 0e8560f commit 3a0eacb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Controller/ApiController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ public function updateQuestion(int $formId, int $questionId, array $keyValuePair
675675
// Don't allow empty array
676676
if (count($keyValuePairs) === 0) {
677677
$this->logger->info('Empty keyValuePairs, will not update.');
678-
throw new OCSBadRequestException('This form is archived and can not be modified');
678+
throw new OCSBadRequestException('Empty keyValuePairs, will not update.');
679679
}
680680

681681
//Don't allow to change id or formId

0 commit comments

Comments
 (0)