[Pkg-owncloud-commits] [owncloud] 191/258: log exceptions when listing files
David Prévot
taffit at moszumanska.debian.org
Sat Oct 11 17:22:35 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 7fd925e96dbb043ac3a7972df30d4242befe96fa
Author: Jörn Friedrich Dreyer <jfd at butonic.de>
Date: Mon Sep 29 21:40:32 2014 +0200
log exceptions when listing files
---
apps/files/ajax/list.php | 3 +++
1 file changed, 3 insertions(+)
diff --git a/apps/files/ajax/list.php b/apps/files/ajax/list.php
index b464134..4908016 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',
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list