From b8facbbd7a9a29c6274c435932b9c810155e2460 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 14 Feb 2015 19:12:13 +0100 Subject: Fix typo in error message Signed-off-by: Florian Pritz --- application/controllers/api/v1/file.php | 2 +- application/tests/test_api_v1.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'application') diff --git a/application/controllers/api/v1/file.php b/application/controllers/api/v1/file.php index fc5565416..a10aaf63a 100644 --- a/application/controllers/api/v1/file.php +++ b/application/controllers/api/v1/file.php @@ -24,7 +24,7 @@ class file extends \controllers\api\api_controller { $files = getNormalizedFILES(); if (empty($files)) { - throw new \exceptions\PublicApiException("file/no-file", "No file was uploaded or unknown error occured."); + throw new \exceptions\PublicApiException("file/no-file", "No file was uploaded or unknown error occurred."); } \service\files::verify_uploaded_files($files); diff --git a/application/tests/test_api_v1.php b/application/tests/test_api_v1.php index bba0f9180..e179abc69 100644 --- a/application/tests/test_api_v1.php +++ b/application/tests/test_api_v1.php @@ -212,7 +212,7 @@ class test_api_v1 extends Test { $this->t->is_deeply(array( 'status' => 'error', 'error_id' => 'file/no-file', - 'message' => 'No file was uploaded or unknown error occured.', + 'message' => 'No file was uploaded or unknown error occurred.', ), $ret, "expected reply"); } -- cgit v1.2.3-24-g4f1b