Skip to content

Commit

Permalink
Add proper message to created share not found
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
  • Loading branch information
skjnldsv committed Apr 22, 2021
1 parent a384cb4 commit 3d4929b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Share20/DefaultShareProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public function create(\OCP\Share\IShare $share) {
$cursor->closeCursor();

if ($data === false) {
throw new ShareNotFound();
throw new ShareNotFound('Newly created share could not be found');
}

$mailSendValue = $share->getMailSend();
Expand Down

0 comments on commit 3d4929b

Please sign in to comment.