summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-09-11 22:38:47 -0700
committerBharat Mediratta <bharat@menalto.com>2010-09-11 22:38:47 -0700
commit9f11d8ad832ef8691398ef12036d40596c8de053 (patch)
tree14532dec956d5302d139d12136ffa28281cc49fc /modules
parentcc4a54a3d65d5a6772cbf2d9670a0af0d6d52542 (diff)
Log the JSON response on errors so that we can figure out what's going
wrong. This will help diagnose #1364 which appears to be an ORM_Validation_Exception, except the actual output is getting eaten by the Organize SWF so we can't see it without snooping network traffic.
Diffstat (limited to 'modules')
-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