Skip to content

Commit

Permalink
Add proper exception message
Browse files Browse the repository at this point in the history
Signed-off-by: Louis Chemineau <louis@chmn.me>
  • Loading branch information
artonge committed Feb 20, 2024
1 parent f159e52 commit aa23ac5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Controller/LockingController.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function lockFolder(int $id, ?string $shareToken = null): DataResponse {
$e2eCounter = (int)$this->request->getHeader('X-NC-E2EE-COUNTER');

if ($e2eCounter === 0) {
throw new OCSPreconditionFailedException($this->l10n->t('X-NC-E2EE-COUNTER'));
throw new OCSPreconditionFailedException($this->l10n->t('X-NC-E2EE-COUNTER is missing in the request'));
}

$ownerId = $this->getOwnerId($shareToken);
Expand Down

0 comments on commit aa23ac5

Please sign in to comment.