Skip to content

Commit

Permalink
Merge pull request #768 from nextcloud/rakekniven-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusknorr authored Jan 10, 2024
2 parents 7c9aad1 + 5e0770b commit 4b8de84
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Controller/AOCSController.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function __construct(
*/
protected function handleError($e): DataResponse {
$this->logger->warning('An internal error or exception occurred: ['. $e->getCode() . ']' . $e->getMessage());
return new DataResponse(['message' => $this->n->t('An unexpected error occurred. More details can be found in the logs. Please reach out to your administrator.')], Http::STATUS_INTERNAL_SERVER_ERROR);
return new DataResponse(['message' => $this->n->t('An unexpected error occurred. More details can be found in the logs. Please reach out to your administration.')], Http::STATUS_INTERNAL_SERVER_ERROR);
}

/**
Expand All @@ -47,7 +47,7 @@ protected function handleError($e): DataResponse {
*/
protected function handlePermissionError(PermissionError $e): DataResponse {
$this->logger->warning('A permission error occurred: ['. $e->getCode() . ']' . $e->getMessage());
return new DataResponse(['message' => $this->n->t('An permission error occurred. More details can be found in the logs. Please reach out to your administrator.')], Http::STATUS_FORBIDDEN);
return new DataResponse(['message' => $this->n->t('A permission error occurred. More details can be found in the logs. Please reach out to your administration.')], Http::STATUS_FORBIDDEN);
}

/**
Expand All @@ -56,7 +56,7 @@ protected function handlePermissionError(PermissionError $e): DataResponse {
*/
protected function handleNotFoundError(NotFoundError $e): DataResponse {
$this->logger->warning('A not found error occurred: ['. $e->getCode() . ']' . $e->getMessage());
return new DataResponse(['message' => $this->n->t('An not found error occurred. More details can be found in the logs. Please reach out to your administrator.')], Http::STATUS_NOT_FOUND);
return new DataResponse(['message' => $this->n->t('A not found error occurred. More details can be found in the logs. Please reach out to your administration.')], Http::STATUS_NOT_FOUND);
}

}

0 comments on commit 4b8de84

Please sign in to comment.