diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-09-11 22:38:47 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-09-11 22:38:47 -0700 |
commit | 9f11d8ad832ef8691398ef12036d40596c8de053 (patch) | |
tree | 14532dec956d5302d139d12136ffa28281cc49fc /modules | |
parent | cc4a54a3d65d5a6772cbf2d9670a0af0d6d52542 (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.php | 4 |
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 |