Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Controller/ImageController.php')
-rw-r--r--lib/Controller/ImageController.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Controller/ImageController.php b/lib/Controller/ImageController.php
index 54a10336d..200119cd4 100644
--- a/lib/Controller/ImageController.php
+++ b/lib/Controller/ImageController.php
@@ -27,6 +27,7 @@ namespace OCA\Text\Controller;
use Exception;
use OCA\Text\Service\SessionService;
+use OCA\Text\UploadException;
use OCP\AppFramework\Http;
use OCA\Text\Service\ImageService;
use OCP\AppFramework\Controller;
@@ -218,7 +219,7 @@ class ImageController extends Controller {
$error = $phpFileUploadErrors[$file['error']];
}
if ($error !== null) {
- throw new Exception($error);
+ throw new UploadException($error);
}
return $file;
}