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.
This commit is contained in:
Bharat Mediratta
2010-09-11 22:38:47 -07:00
parent cc4a54a3d6
commit 9f11d8ad83
+4
View File
@@ -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);