summaryrefslogtreecommitdiff
path: root/modules/rest/views/error_rest.json.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-06-20 08:50:19 -0700
committerBharat Mediratta <bharat@menalto.com>2010-06-20 08:50:19 -0700
commitf6025026eb4798774044fcd12f0f09313073141a (patch)
treedfdcec0e8e2186b48167821ea85292018d5c3ca2 /modules/rest/views/error_rest.json.php
parentd86d1a32e8fc0feeaea3fa29a07035e0edfc7b90 (diff)
Rename error_rest.php to error_rest.json.php so that we specify the
result type in the filename as is our convention for views.
Diffstat (limited to 'modules/rest/views/error_rest.json.php')
-rw-r--r--modules/rest/views/error_rest.json.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/rest/views/error_rest.json.php b/modules/rest/views/error_rest.json.php
new file mode 100644
index 00000000..c018378e
--- /dev/null
+++ b/modules/rest/views/error_rest.json.php
@@ -0,0 +1,2 @@
+<?php defined("SYSPATH") or die("No direct script access.") ?>
+<?= json_encode($e->response) ?> \ No newline at end of file