diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-09-29 21:40:32 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-10-08 18:49:43 +0200 |
commit | 18e3856092b9d70584110b772c69a05db6b7e400 (patch) | |
tree | 98fa5e93cc2c351d47b6303192cb90871cdf493a /apps/files/ajax | |
parent | 6d94a884767d1942af3f6973eb1ef84a39dee131 (diff) | |
download | nextcloud-server-18e3856092b9d70584110b772c69a05db6b7e400.tar.gz nextcloud-server-18e3856092b9d70584110b772c69a05db6b7e400.zip |
log exceptions when listing files
Diffstat (limited to 'apps/files/ajax')
-rw-r--r-- | apps/files/ajax/list.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files/ajax/list.php b/apps/files/ajax/list.php index 16e48a2c2af..4abf5ad7607 100644 --- a/apps/files/ajax/list.php +++ b/apps/files/ajax/list.php @@ -32,6 +32,7 @@ try { OCP\JSON::success(array('data' => $data)); } catch (\OCP\Files\StorageNotAvailableException $e) { + \OCP\Util::logException('files', $e); OCP\JSON::error(array( 'data' => array( 'exception' => '\OCP\Files\StorageNotAvailableException', @@ -39,6 +40,7 @@ try { ) )); } catch (\OCP\Files\StorageInvalidException $e) { + \OCP\Util::logException('files', $e); OCP\JSON::error(array( 'data' => array( 'exception' => '\OCP\Files\StorageInvalidException', @@ -46,6 +48,7 @@ try { ) )); } catch (\Exception $e) { + \OCP\Util::logException('files', $e); OCP\JSON::error(array( 'data' => array( 'exception' => '\Exception', |