Commit 0e8560f
fix(api): correct misleading error message on empty keyValuePairs
updateQuestion() rejected an empty keyValuePairs array with the message
"This form is archived and can not be modified". That message is unrelated
to the actual cause and sends callers looking in the wrong place.
The sibling methods updateForm() and updateOption() already report this
case accurately, and updateQuestion()'s own @throws annotation documents
it as "Empty keyValuePairs, will not update" too, so the string looks like
a copy-paste leftover from the archived-form check further up.
Only the message is changed. The exception type stays OCSBadRequestException
so the HTTP status code is unaffected.
Signed-off-by: Josef Behr <code@josef-behr.de>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 892c3d9 commit 0e8560f
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
675 | 675 | | |
676 | 676 | | |
677 | 677 | | |
678 | | - | |
| 678 | + | |
679 | 679 | | |
680 | 680 | | |
681 | 681 | | |
| |||
0 commit comments