summaryrefslogtreecommitdiffstats
path: root/application/controllers/api.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2015-06-04 22:09:05 +0200
committerFlorian Pritz <bluewind@xinu.at>2015-06-04 22:09:05 +0200
commit048410164d2a17bbb588e43351e44eeb81610960 (patch)
tree0331c096d68d78496342accbd92b341113fe72b3 /application/controllers/api.php
parent8b3525c2b79f74089b623ca6870ddb9b06270e5d (diff)
Refactor exception handling into dedicated class
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/controllers/api.php')
-rw-r--r--application/controllers/api.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/controllers/api.php b/application/controllers/api.php
index 644a726e7..9540f1ff7 100644
--- a/application/controllers/api.php
+++ b/application/controllers/api.php
@@ -59,7 +59,7 @@ class Api extends MY_Controller {
} catch (\exceptions\PublicApiException $e) {
return send_json_error_reply($e->get_error_id(), $e->getMessage(), $e->get_data());
} catch (\Exception $e) {
- _log_exception($e);
+ \libraries\ExceptionHandler::log_exception($e);
return send_json_error_reply("internal-error", "An unhandled internal server error occured");
}
}