Skip to content

Commit

Permalink
Log the JSON response on errors so that we can figure out what's going
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bharat committed Sep 12, 2010
1 parent cc4a54a commit 9f11d8a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions 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);

0 comments on commit 9f11d8a

Please sign in to comment.