summaryrefslogtreecommitdiffstats
path: root/application/controllers/api
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2015-01-11 01:39:22 +0100
committerFlorian Pritz <bluewind@xinu.at>2015-01-16 17:38:38 +0100
commit434143c2b01c203bf9030669a14055872121b2c0 (patch)
tree129d606d3e0f3082b65f7c379a7fd2aa3e94286b /application/controllers/api
parent9670d794be886c036408de85773a0b7d204979b9 (diff)
improve api errors
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/controllers/api')
-rw-r--r--application/controllers/api/v1/file.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/controllers/api/v1/file.php b/application/controllers/api/v1/file.php
index fc855f7f9..869d29ed1 100644
--- a/application/controllers/api/v1/file.php
+++ b/application/controllers/api/v1/file.php
@@ -29,7 +29,7 @@ class file extends \controllers\api\api_controller {
$errors = \service\files::verify_uploaded_files($files);
if (!empty($errors)) {
- return send_json_reply($errors, "upload-error");
+ return send_json_error_reply("file/upload-verify-failed", "Failed to verify uploaded file", $errors);
}
$limits = $this->muser->get_upload_id_limits();