Merge pull request #5160 from nextcloud/comradekingu-patch-1

no "mail" or mid sentence "E-mail"
This commit is contained in:
Morris Jobke 2017-05-31 11:16:51 +02:00 committed by GitHub
commit a0f16c69ac
1 changed files with 2 additions and 2 deletions

View File

@ -353,10 +353,10 @@ class ShareByMailProvider implements IShareProvider {
$this->removeShareFromTable($shareId);
throw $hintException;
} catch (\Exception $e) {
$this->logger->error('Failed to send share by mail: ' . $e->getMessage());
$this->logger->error('Failed to send share by email: ' . $e->getMessage());
$this->removeShareFromTable($shareId);
throw new HintException('Failed to send share by mail',
$this->l->t('Failed to send share by E-mail'));
$this->l->t('Failed to send share by email'));
}
return $shareId;