summaryrefslogtreecommitdiff
path: root/modules/rest
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2010-09-12 10:57:41 -0700
committerTim Almdal <tnalmdal@shaw.ca>2010-09-12 10:57:41 -0700
commitbd532f6c88ef54bd47c9b1af46bc8d2c80d4407b (patch)
tree7522d38320d6466ac400a97ace5ba3b2d37048fd /modules/rest
parentac64614d4da7174c085f257f3b8e39aa7afa9eb5 (diff)
parentf84c4a6192ea0e47ca5b2006baa0bfd7e09a682c (diff)
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules/rest')
-rw-r--r--modules/rest/views/error_rest.json.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/rest/views/error_rest.json.php b/modules/rest/views/error_rest.json.php
index 179ce7f9..8c99ef45 100644
--- a/modules/rest/views/error_rest.json.php
+++ b/modules/rest/views/error_rest.json.php
@@ -1,2 +1,6 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
+<?
+// Log error response to ease debugging
+Kohana_Log::add("error", "Rest error details: " . print_r($e->response, 1));
+?>
<?= json_encode($e->response); \ No newline at end of file