mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-21 23:33:54 -04:00
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:
@@ -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);
|
||||
Reference in New Issue
Block a user